On iOS, AlwaysScrollableScrollPhysics
makes the viewport bounce in case of overscrolling. This effect is not desired. Is there a technique to always allow (over-)scrolling without bouncing back? What I am looking for is pretty much a ClampingScrollPhysic
s that can always be scrolled.

- 57
- 1
- 6
2 Answers
I had a similar need to combine scroll physics, where I needed AlwaysScrollableScrollPhysics
to make my list refreshable (see here) but I also needed ClampingScrollPhysics
because I had a nested list view (see here)
I ended up making it work with the following:
const AlwaysScrollableScrollPhysics()
.applyTo(const ClampingScrollPhysics()),
From the docs:
Combines this ScrollPhysics instance with the given physics. The returned object uses this instance's physics when it has an opinion, and defers to the given ancestor object's physics when it does not.
Maybe something similar would work in your scenario.
EDIT: Actually this did not work, the nested list views stopped scrolling properly. Will leave this up though in case it inspires someone else

- 480
- 1
- 4
- 19
Not really sure what you want to achieve, but you can provide a parent: https://api.flutter.dev/flutter/widgets/ScrollPhysics/parent.html
I use the following with a RefreshIndicator
:
physics: const ClampingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),

- 21
- 2