24

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?

braulio.cassule
  • 1,322
  • 4
  • 14
  • 23

2 Answers2

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
0

You should try this

const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics())