snapping_sheet
3.1.0, released 6 years ago by adamjonsson.dev
A sheet widget that snaps to different vertical and horizontal positions.
What it does
Provides a highly customizable sheet widget that can snap to various vertical or horizontal positions. It adapts to scrollable widgets inside the sheet and is not limited to the bottom part of the app.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a bottom sheet (or top/left/right sheet) that snaps to specific positions.
- You want a sheet that integrates cleanly with scrollable widgets like ListView.
- You need horizontal snapping sheet capabilities.
Skip it when
- You only need standard Flutter modal bottom sheets without custom snapping mechanics.
- You require a complex navigation-based sheet layout that isn't suited for a custom widget.
Strengths
- Supports both vertical and horizontal snapping directions.
- Can adapt to scrollable widgets inside the sheet.
- Fully customizable animations, content, and snapping positions.
Weaknesses
- Scrollable widgets inside the sheet require specific reverse configurations depending on their position.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter/material.dart';
import 'package:snapping_sheet/snapping_sheet.dart';
class GettingStartedExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SnappingSheet(
child: MyOwnPageContent(),
grabbingHeight: 75,
grabbing: MyOwnGrabbingWidget(),
sheetBelow: SnappingSheetContent(
draggable: true,
child: MyOwnSheetContent(),
),
),
);
}
}Alternatives
Packages that do the same job and could replace snapping_sheet.
- snapping_sheet_2
A customizable vertical and horizontal sheet widget that snaps to different positions.
50Compare - star_menu
Contextual popup menus with different shapes, animations, and custom widget entries.
70Compare - flutter_scroll_shadow
Adds customizable scroll shadows to scrollable Flutter children.
58Compare - flutter_xlider
A material design slider and range slider for Flutter supporting horizontal and vertical axes and RTL.
50Compare