ModalPresentation enum

How a modal shows.

Inheritance
Available extensions

Values

dialog → const ModalPresentation

A centered dialog.

bottomSheet → const ModalPresentation

A sheet from the bottom.

adaptive → const ModalPresentation

A bottom sheet on narrow screens, a dialog on wide ones: the one way to write "a dialog on a desktop, a sheet on a phone" (a compose window). Where it switches is OpenModalAction.sheetBelow: by default a sheet on the project's narrowest breakpoint only.

sideSheet → const ModalPresentation

A sheet along a side of the screen, as tall as it and sheetWidth wide, sliding in from that side: OpenModalAction.sheetSide, the end (an inspector, a cart) or the start (a docs or app drawer), in reading order. Its screen fills it. A drag toward its side closes it, as a press on the barrier and Escape do, unless barrierDismissible is false.

fullScreen → const ModalPresentation

The whole screen.

popover → const ModalPresentation

A popover next to the node that opened it (or the pointer).

A banner along the top edge of the screen (the bottom edge when OpenModalAction.alignment's y is above 0), over everything (a dialog and its barrier included), with no barrier: the app behind stays usable. It slides in (or as its OpenModalAction.routeTransition's enter side says), a swipe toward its edge dismisses it when OpenModalAction.barrierDismissible, OpenModalAction.closeAfterMs closes it by itself, and its screen closes it with a CloseModalAction. Banners show one at a time, in the order they were opened: a toast is a banner. A runtime that doesn't know it shows a dialog.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ModalPresentation>
A constant List of the values in this enum, in order of their declaration.