flutter_top_blocked_bouncing_scroll_physics 1.0.0 copy "flutter_top_blocked_bouncing_scroll_physics: ^1.0.0" to clipboard
flutter_top_blocked_bouncing_scroll_physics: ^1.0.0 copied to clipboard

Flutter scroll-physics which behaves like `BouncingScrollPhysics`, except doesn't let you to over-scroll on top.

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(),
);

If you always want over-scroll on the bottom, use AlwaysScrollableScrollPhysics with TopBlockedBouncingScrollPhysics as a parent:

return ListView(
  physics: const AlwaysScrollableScrollPhysics(
    parent: TopBlockedBouncingScrollPhysics(),
  ),
);

Demo #

15
likes
150
pub points
61%
popularity

Publisher

unverified uploader

Flutter scroll-physics which behaves like `BouncingScrollPhysics`, except doesn't let you to over-scroll on top.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_top_blocked_bouncing_scroll_physics