snapping_bottom_sheet library

Classes

ParallaxSpec
A ParallaxSpec to create a parallax effect.
ScrollSpec
Defines the scroll effects, physics and more.
SheetController
A controller for a SnappingBottomSheet.
SheetListenerBuilder
A widget that can be used to react to changes in the SheetState of a SnappingBottomSheet.
SheetState
A data class containing state information about the SnappingBottomSheet such as the extent and scroll offset.
SnappingBottomSheet
A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents.
SnappingBottomSheetDialog
A wrapper class to show a SnappingBottomSheet as a bottom sheet dialog.
SnappingBottomSheetState
SnapSpec
Defines how a SnappingBottomSheet should snap, or if it should at all.

Enums

SnapPositioning
How the snaps will be positioned.

Functions

showSnappingBottomSheet<T>(BuildContext context, {required SnappingBottomSheetDialog builder(BuildContext context), Widget parentBuilder(BuildContext context, SnappingBottomSheet sheet)?, RouteSettings? routeSettings, bool useRootNavigator = false, bool resizeToAvoidBottomInset = true}) Future<T?>
Shows a SnappingBottomSheet as a material design bottom sheet.

Typedefs

CustomSheetBuilder = Widget Function(BuildContext context, ScrollController controller, SheetState state)
OnDismissPreventedCallback = void Function(bool backButton, bool backDrop)
SheetBuilder = Widget Function(BuildContext context, SheetState state)
SheetListener = void Function(SheetState state)