Skip to Content
Forui 0.15.0 is released 🎉
DocumentationOverlayPersistent Sheet

Persistent Sheet

A persistent sheet is displayed above another widget while still allowing users to interact with the widget below. It is part of FScaffold, which should be preferred in most cases.

A closely related widget is a modal sheet which prevents the user from interacting with the rest of the app.

All calls to showFPersistentSheet(...) should be made inside widgets that have either FScaffold or FSheets as their ancestor.

CLI

To generate and customize this style:

dart run forui style create sheet

Usage

showFPersistentSheet(...)

showFPersistentSheet( context: context, style: FSheetStyle(...), side: FLayout.ltr, useSafeArea: false, keepAliveOffstage: true, mainAxisMaxRatio: null, constraints: const BoxConstraints(maxWidth: 450, maxHeight: 450), draggable: true, builder: (context, controller) => const Placeholder(), );

Examples

With KeepAliveOffstage

With DraggableScrollableSheet

Last updated on