wtf_sliding_sheet
1.1.7, released 8 weeks ago by flutter.wtf
A draggable and scrollable sheet widget that snaps to a list of extents.
WASM-ready
What it does
Provides a SlidingSheet widget and BottomSheetDialog that can be dragged, scrolled in a single gesture, and snapped to custom extents. It supports headers, footers, parallax effects, and manual control via a SheetController.
AI-written summary of version 1.1.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a bottom sheet that supports complex snapping behaviors and single-gesture dragging and scrolling.
- You want to display a persistent sliding panel above your app body.
Skip it when
- You only need standard native Material bottom sheets without custom snapping or single-gesture scroll integration.
- Your content has infinite or unbounded height without handling shrinkWrap and physics.
Strengths
- Can be used either as a permanent widget in the tree or as a dialog via bottom sheet functions.
- Supports custom snapping positions relative to available space, sheet height, or pixel offset.
- Includes built-in header and footer support that remain fixed while content scrolls.
Weaknesses
- Children like ListView or Column require specific height configurations (e.g., shrinkWrap) to prevent unbounded height errors.
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'),
),
);
},
)