Sheet
A modal sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app. It navigates to a new page each time.
A closely related widget is a persistent sheet, which shows information that supplements the primary content of the app without preventing the user from interacting with the app.
Preview
CLI
To generate and customize this style:
dart run forui style create modal-sheetUsage
showFSheet(...)
showFSheet(
context: context,
side: FLayout.ltr,
useRootNavigator: false,
style: (style) => style.copyWith(...),
mainAxisMaxRatio: 9 / 16,
useSafeArea: false,
resizeToAvoidBottomInset: true,
barrierLabel: 'Dismiss',
barrierDismissible: true,
constraints: BoxConstraints(),
draggable: true,
routeSettings: RouteSettings(),
transitionAnimationController: AnimationController(...),
anchorPoint: Offset.zero,
onClosing: () {},
builder: (context) => const Placeholder(),
);Examples
Blurred Barrier
Preview
With DraggableScrollableSheet
Preview
Last updated on