widgets/sheet library
A sheet is a panel that slides in from the edge of a screen.
See:
- https://forui.dev/docs/overlay/sheet for working examples of a modal sheet.
- https://forui.dev/docs/overlay/persistent-sheet for working examples of a persistent sheet.
Classes
- FModalSheetMotion
- The motion-related properties for a modal sheet.
-
FModalSheetRoute<
T> - A route that represents a modal sheet. showFSheet should be preferred in most cases.
- FModalSheetStyle
- A modal sheet's style.
- FPersistentSheetController
- A sheet controller.
- FPersistentSheetMotion
- The motion-related properties for a persistent sheet.
- FPersistentSheetStyle
- A persistent sheet's style.
- FSheetMotion
- The motion-related properties for a sheet.
- FSheets
- Sheets that are displayed above its child. It is part of FScaffold, which should be preferred in most cases.
- FSheetStyle
- A sheet's style.
Extensions
- $FModalSheetMotionTransformations on FModalSheetMotion
- Provides copyWith and lerp methods.
- $FModalSheetStyleTransformations on FModalSheetStyle
- Provides copyWith and lerp methods.
- $FPersistentSheetMotionTransformations on FPersistentSheetMotion
- Provides copyWith and lerp methods.
- $FPersistentSheetStyleTransformations on FPersistentSheetStyle
- Provides copyWith and lerp methods.
Functions
-
showFPersistentSheet(
{required BuildContext context, required FLayout side, required Widget builder(BuildContext context, FPersistentSheetController controller), FPersistentSheetStyle style(FPersistentSheetStyle)?, double? mainAxisMaxRatio = 9 / 16, BoxConstraints constraints = const BoxConstraints(), bool draggable = true, Offset? anchorPoint, bool useSafeArea = false, bool keepAliveOffstage = false, VoidCallback? onClosing, Key? key}) → FPersistentSheetController - Shows a persistent sheet that appears above the current widget. It should have a FSheets or FScaffold ancestor.
-
showFSheet<
T> ({required BuildContext context, required WidgetBuilder builder, required FLayout side, FModalSheetStyle style(FModalSheetStyle style)?, double? mainAxisMaxRatio = 9 / 16, String? barrierLabel, bool barrierDismissible = true, BoxConstraints constraints = const BoxConstraints(), bool draggable = true, RouteSettings? routeSettings, AnimationController? transitionAnimationController, Offset? anchorPoint, bool useSafeArea = false, VoidCallback? onClosing}) → Future< T?> -
Shows a modal sheet that appears from the given
side
.