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

A custom ScrollPhysics for bottom sheets with nested scroll views.

BottomSheetScrollPhysics #

A custom scroll physics for modal bottom sheets with nested scroll view.

This BottomSheetScrollPhysics behaves as ClampingScrollPhysics at the top of the scroll and as the default ScrollPhysics on the bottom. This means that on iOS it will behave like ClampingScrollPhysics at the top and BouncingScrollPhysics at the bottom. And on Android, it will behave like ClampingScrollPhysics at the top and at the bottom of the scroll.

Examples #

Default ScrollPhysics

Default ScrollPhysics

Bottom Sheet with BottomSheetScrollPhysics

Bottom Sheet with BottomSheetScrollPhysics

Usage #

Use BottomSheetScrollPhysics as a physics widget in scrollable widgets.

@override
Widget build(BuildContext context) {
  return CustomScrollView(
    physics: const BottomSheetScrollPhysics(),
    slivers: [
      // ...
    ],
  );
}

Issues #

To report your issues, submit them directly in the Issues section on GitHub.

4
likes
150
pub points
65%
popularity

Publisher

unverified uploader

A custom ScrollPhysics for bottom sheets with nested scroll views.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on bottom_sheet_scroll_physics