wtf_sliding_sheet library
Classes
- ParallaxSpec
- A ParallaxSpec to create a parallax effect.
- ScrollSpec
- Defines the scroll effects, physics and more.
- SheetController
- A controller for a SlidingSheet.
- SheetListenerBuilder
- A widget that can be used to react to changes in the SheetState of a SlidingSheet.
- SheetState
- A data class containing state information about the SlidingSheet such as the extent and scroll offset.
- SlidingSheet
- A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents.
- SlidingSheetDialog
- A wrapper class to show a SlidingSheet as a bottom sheet dialog.
- SnapSpec
- Defines how a SlidingSheet should snap, or if it should at all.
Enums
- SnapPositioning
- How the snaps will be positioned.
Functions
-
showSlidingBottomSheet<
T> (BuildContext context, {required SlidingSheetDialog builder(BuildContext context), Widget parentBuilder(BuildContext context, SlidingSheet sheet)?, RouteSettings? routeSettings, bool resizeToAvoidBottomInset = true}) → Future< T?> - Shows a SlidingSheet as a material design bottom sheet.
Typedefs
- CustomSheetBuilder = Widget Function(BuildContext context, ScrollController controller, SheetState state)
- Widget for building sheet with custom scroll view.
- OnDismissPreventedCallback = void Function({required bool backButton, required bool backDrop})
- Callback prevented dismiss the dialog
- OnOpenCallback = void Function()
- Callback for opening sheet.
- SheetBuilder = Widget Function(BuildContext context, SheetState state)
- Widget for building sheet.
- SheetListener = void Function(SheetState state)
- Callback for changing state of the sheet.