Skip to Content
Forui 0.17.0 is released 🎉

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.

CLI

To generate and customize this style:

dart run forui style create modal-sheet

Usage

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

With DraggableScrollableSheet

Last updated on