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?
The glow effect comes from GlowingOverscrollIndicator added by ScrollBehavior. To remove this effect, you need to specify a custom ScrollBehavior. For that, simply wrap any given part of your application into a ScrollConfiguration with the desired ScrollBehavior.
ClampingScrollPhysics class Null safety. Scroll physics for environments that prevent the scroll offset from reaching beyond the bounds of the content. This is the behavior typically seen on Android. See also: ScrollConfiguration, which uses this to provide the default scroll behavior on Android.
BouncingScrollPhysics class Null safety. Scroll physics for environments that allow the scroll offset to go beyond the bounds of the content, but then bounce the content back to the edge of those bounds. This is the behavior typically seen on iOS.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With