forui.widgets.sheet library - Dart API (original) (raw)
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.
Functions
showFPersistentSheet({required BuildContext context, required FLayout side, required Widget builder(BuildContext, FPersistentSheetController), FSheetStyle? style, double? mainAxisMaxRatio = 9 / 16, BoxConstraints constraints = const BoxConstraints(), bool draggable = true, Offset? anchorPoint, bool useSafeArea = false, bool keepAliveOffstage = false, 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, bool useRootNavigator = false, FSheetStyle? 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})→ Future<T?>
Shows a modal sheet that appears from the given side
.