ModalPopup class abstract
Stylized modal popup.
Intended to be displayed with the show method.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
padding(
BuildContext context) → EdgeInsets - Returns a padding that should be applied to the elements inside a ModalPopup.
-
show<
T> ({required BuildContext context, required Widget child, BoxConstraints desktopConstraints = const BoxConstraints(maxWidth: double.infinity, maxHeight: double.infinity), BoxConstraints modalConstraints = const BoxConstraints(maxWidth: 380), BoxConstraints mobileConstraints = const BoxConstraints(maxWidth: double.infinity, maxHeight: double.infinity), EdgeInsets mobilePadding = const EdgeInsets.fromLTRB(10, 0, 10, 16), EdgeInsets desktopPadding = const EdgeInsets.fromLTRB(0, 0, 0, 10), bool isDismissible = true, Color? background}) → Future< T?> -
Opens a new ModalPopup wrapping the provided
child
.