Modal class
Provides easy modal functionality.
Displays a message modal that allows only one action with alert.
Displays a message modal with two possible actions at confirm.
簡単なモーダルの機能を提供します。
alertでアクションを1つだけ可能なメッセージモーダルを表示します。
confirmでアクションを2つ実行可能なメッセージモーダルを表示します。
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
-
alert(
BuildContext context, {required String submitText, Color? backgroundColor, Color? color, required String title, String? text, Widget? child, Widget? leading, VoidCallback? onSubmit, bool disableBackKey = false, bool popOnPress = true, bool willShowRepetition = false, ButtonStyle? buttonStyle}) → Future< void> - Displays a message modal with only one possible action.
-
bottomSheet(
BuildContext context, {Color? backgroundColor, Color? color, bool isScrollControlled = false, required List< Widget> builder(BuildContext context, VoidCallback onClose), EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 0.0)}) → Future<void> - Display the bottom sheet as a modal.
-
confirm(
BuildContext context, {Color? backgroundColor, Color? color, required String submitText, required String cancelText, required String title, String? text, Widget? child, Widget? leading, VoidCallback? onSubmit, VoidCallback? onCancel, bool popOnPress = true, bool willShowRepetition = false, ButtonStyle? submitButtonStyle, ButtonStyle? cancelButtonStyle}) → Future< bool> - Displays a message modal that can perform two actions.
-
show(
BuildContext context, {Color? backgroundColor, Color? color, String? title, Widget? leading, required List< Widget> builder(ModalRef ref), bool disableBackKey = false, bool popOnPress = true, bool willShowRepetition = false, EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0), AlignmentGeometry? alignment}) → Future<void> -
Give
builder
to display the modal.