Skip to content
pubscout

snapping_bottom_sheet

1.0.4, released 3 years ago by sujangainju.com.np

Draggable, scrollable, and snapping bottom sheet widget for Flutter.

WASM-ready
$ flutter pub add snapping_bottom_sheet
Source repository

What it does

Provides a customizable bottom sheet widget that supports snapping to multiple extents, scrolling content, headers, footers, and can be used as a permanent widget or a dialog.

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

Use it when

  • You need a bottom sheet that can snap to multiple height positions.
  • You want custom headers and footers that remain fixed while the content scrolls inside the sheet.

Skip it when

  • You only need the standard Material persistent or modal bottom sheets provided by Flutter SDK.

Strengths

  • Supports multiple snap positions and custom positioning modes.
  • Includes built-in support for fixed headers and footers.
  • Can be used directly in the widget tree or shown as a dialog.

Weaknesses

  • Children like ListViews require specific configurations (like shrinkWrap and NeverScrollableScrollPhysics) to avoid layout errors.
  • Limited documentation outside of the README.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SnappingBottomSheet(
  elevation: 8,
  cornerRadius: 16,
  snapSpec: const SnapSpec(
    snap: true,
    snappings: [0.4, 0.7, 1.0],
    positioning: SnapPositioning.relativeToAvailableSpace,
  ),
  body: Center(
    child: Text('Body widget'),
  ),
  builder: (context, state) {
    return Container(
      height: 500,
      child: Center(
        child: Text('Sheet content'),
      ),
    );
  },
)

Alternatives

Packages that do the same job and could replace snapping_bottom_sheet.