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.

Usage

showFPersistentSheet(...)

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

Examples

With KeepAliveOffstage

With DraggableScrollableSheet