flutter_top_blocked_bouncing_scroll_physics

Last updated:

0 purchases

flutter_top_blocked_bouncing_scroll_physics Image
flutter_top_blocked_bouncing_scroll_physics Images
Add to Cart

Description:

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 #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.