Last updated:
0 purchases
flutter top blocked bouncing scroll physics
Flutter scroll-physics which behaves like BouncingScrollPhysics,
except doesn't let you to over-scroll on top.
Usage #
If you want over-scroll on bottom only when the content is longer than
max scroll extent, use TopBlockedBouncingScrollPhysics:
return ListView(
physics: const TopBlockedBouncingScrollPhysics(),
);
copied to clipboard
If you always want over-scroll on the bottom, use AlwaysScrollableScrollPhysics
with TopBlockedBouncingScrollPhysics as a parent:
return ListView(
physics: const AlwaysScrollableScrollPhysics(
parent: TopBlockedBouncingScrollPhysics(),
),
);
copied to clipboard
Demo #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.