Skip to content
pubscout

sliding_sheet2

2.0.1, released 3 years ago by an unverified publisher

A widget that can be dragged and scrolled in a single gesture and snapped to extents.

WASM-ready
$ flutter pub add sliding_sheet2
Source repository

What it does

Provides a sliding sheet widget that can be used permanently in the widget tree or as a bottom sheet dialog. It allows dragging, scrolling in a single gesture, and snapping to specific extents with support for headers, footers, and parallax effects.

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

Use it when

  • You need a bottom sheet that can be dragged, scrolled, and snapped to various extents seamlessly.
  • You want a persistent sliding panel embedded directly into your widget tree.

Skip it when

  • You only need standard Material bottom sheets without custom snap points or single-gesture drag-to-scroll behavior.
  • Your children have infinite height without proper constraints (like shrinkWrap).

Strengths

  • Supports dragging and scrolling in a single gesture.
  • Can be used both as a persistent widget and as a bottom sheet dialog.
  • Highly customizable snapping behavior and snap positioning.

Weaknesses

  • Requires careful handling of child widget heights (e.g. shrinkWrap for ListViews).
  • Forks an older package, requiring careful consideration for maintenance.

Setup

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

Alternatives

Packages that do the same job and could replace sliding_sheet2.