Skip to content
pubscout

modal_bottom_sheet

3.0.0, released 3 years ago by jaimeblasco.com

Create customizable and powerful modal bottom sheets in Material and Cupertino styles.

WASM-readyQuiet but busy
$ flutter pub add modal_bottom_sheet
Source repository

What it does

Allows developers to create advanced modal bottom sheets with support for inside scrollviews, dragging down to close, status bar tapping to scroll to top, and custom Cupertino-style modal animations.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need modal bottom sheets that contain scroll views and require proper drag-to-close behavior.
  • You want iOS 13 style Cupertino modal bottom sheets with background scaling and blurring effects.
  • You need to stack multiple modal bottom sheets or push views inside a modal.

Skip it when

  • You are using standard `routes` parameters in MaterialApp/CupertinoApp and cannot easily switch route classes or use `CupertinoScaffold` for animated previous routes.
  • You only need the basic built-in `showModalBottomSheet` from Flutter and do not require scroll syncing or Cupertino styling.

Strengths

  • Supports inside scroll views with synced drag-to-close gestures.
  • Provides authentic iOS 13 Cupertino modal bottom sheet look and feel.
  • Allows creating custom modal bottom sheets and stacking multiple modals.

Weaknesses

  • Requires replacing standard routes with `MaterialWithModalsPageRoute` or wrapping routes in `CupertinoScaffold` to animate previous routes properly.
  • Some parameters like `secondAnimation` are deprecated or advised against use.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

To animate previous routes properly with Cupertino modals, you must replace `MaterialPageRoute` with `MaterialWithModalsPageRoute` or use `CupertinoScaffold`.

showMaterialModalBottomSheet(
  context: context,
  builder: (context) => Container(),
);

Alternatives

Packages that do the same job and could replace modal_bottom_sheet.