BouncingScrollPhysics by default bounce at the start and end of a ScrollView but I would like to over ride that. How can I accomplish that?
Asked
Active
Viewed 1.9k times
2 Answers
54
You can set physics
on CustomScrollView
to whatever fits your need this way :
new CustomScrollView(
physics: new ClampingScrollPhysics(),
...
);
For example you can use ClampingScrollPhysics
, which will stop at the end of the scroll with nothing else.

Rémi Rousselet
- 256,336
- 79
- 519
- 432
-
I have use it in my AnimatedList and it works! – Álvaro Agüero Aug 17 '21 at 16:02
0
You should try this
const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics())

Aygün Özdemir
- 11
- 2