M3EAdaptiveDialog class

Dialog that swaps variant at the compact breakpoint.

Below M3EDialogTheme.compactBreakpoint it is a full-screen dialog (close X and confirmLabel in the header). Wider, it is a basic dialog with dismissLabel and confirmLabel actions. Crossing the breakpoint morphs the surface on the spatial spring.

Inheritance

Constructors

M3EAdaptiveDialog({required String title, required Widget content, required String confirmLabel, required VoidCallback? onConfirm, String dismissLabel = M3EDialogStrings.cancel, Widget? icon, M3EDialogPosition position = M3EDialogPosition.center, M3EDialogController? controller, String? semanticLabel, Key? key})
M3EAdaptiveDialog.
const

Properties

confirmLabel → String
Confirming action label (e.g. Save).
final
content → Widget
Body. Scrolls in both variants.
final
controller → M3EDialogController?
Receives the active variant.
final
dismissLabel → String
Dismissive action label in the basic variant.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
Optional hero icon in the basic variant.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onConfirm → VoidCallback?
Confirming action. Null disables it.
final
position → M3EDialogPosition
Basic dialog position.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Null uses title.
final
title → String
Headline.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<M3EAdaptiveDialog>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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