DialogExt extension
- on
Methods
-
alert(
dynamic message, [String? title]) → Future< void> -
Available on BuildContext, provided by the DialogExt extension
-
confirm(
dynamic content, {dynamic title, dynamic textOK, dynamic textCancel, bool canPop = false, void onPopInvoked(bool, dynamic)?}) → Future< bool> -
Available on BuildContext, provided by the DialogExt extension
Thetitleargument is used to title of alert dialog. Thecontentargument is used to content of alert dialog. ThetextOKargument is used to text for 'OK' Button of alert dialog. ThetextCancelargument is used to text for 'Cancel' Button of alert dialog. ThecanPopargument iscanPopof PopScope. TheonPopInvokedargument isonPopInvokedof PopScope. -
confirmTask<
T> ({dynamic confirmTaskMessage, dynamic title, dynamic yesButton, dynamic noButton, bool canPop = false, void onPopInvoked(bool, dynamic)?, required Future< T?> task(), dynamic cancelTaskButton, dynamic loadingText, dynamic cancelConfirmationText, void onError(Object?)?, void onCancel()?}) → Future<T?> -
Available on BuildContext, provided by the DialogExt extension
Displays a confirmation dialog and shows a loader if the user confirms. -
dialog(
dynamic content, {String? title, List< String> buttons = const [], String? cancelButton, dynamic onDone(String)?, Color? positiveTitleColor, Color? cancelTitleColor, double? fontSize, bool barrierDismissible = true}) → Future<void> -
Available on BuildContext, provided by the DialogExt extension
-
prompt(
{dynamic title, dynamic textOK, dynamic textCancel, String? initialValue, bool isSelectedInitialValue = true, String? hintText, String? validator(String?)?, int minLines = 1, int maxLines = 1, bool autoFocus = true, TextInputType? keyboardType, TextInputAction? textInputAction, bool obscureText = false, String obscuringCharacter = '•', bool showPasswordIcon = false, bool barrierDismissible = false, TextCapitalization textCapitalization = TextCapitalization.none, TextAlign textAlign = TextAlign.start, TextEditingController? controller, InputDecoration? decoration, EdgeInsets? insetPadding, EdgeInsets? contentPadding, EdgeInsets? actionsPadding, EdgeInsets? titlePadding, EdgeInsets? buttonPadding, EdgeInsets? iconPadding, bool canPop = false, void onPopInvoked(bool, dynamic)?, int? maxLength}) → Future< String?> -
Available on BuildContext, provided by the DialogExt extension
Thetitleargument is used to title of alert dialog.
ThetextOKargument is used to text for 'OK' Button of alert dialog.
ThetextCancelargument is used to text for 'Cancel' Button of alert dialog.
TheinitialValueargument is used to an initial value of alert dialog.
TheisSelectedInitialValueargument is used to select an initial value of alert dialog.
ThehintTextargument will be hintText in TextFormField of alert dialog.
Thevalidatorargument will be validator in TextFormField of alert dialog.
TheminLinesargument will be minLines in TextFormField of alert dialog.
ThemaxLinesargument will be maxLines in TextFormField of alert dialog.
TheautoFocusargument will be autoFocus in TextFormField of alert dialog.
ThekeyboardTypeargument will be keyboardType in TextFormField of alert dialog.
ThetextInputActionargument will be textInputAction in TextFormField of alert dialog.
TheobscureTextargument will be obscureText in TextFormField of alert dialog.
TheobscuringCharacterargument will be obscuringCharacter in TextFormField of alert dialog.
TheshowPasswordIconvisible for show password icon. default is false.
ThebarrierDismissibleargument will be barrierDismissible showDialog form of alert dialog.
ThetextCapitalizationargument will be textCapitalization in TextFormField of alert dialog.
ThetextAlignargument will be textAlign in TextFormField of alert dialog.
Thecontrollerargument will be controller in TextFormField of alert dialog.
Thedecorationargument will allow modification of the text field decoration. ThehintTextandsuffixIconfields will be overridden.
ThecanPopargument iscanPopof PopScope.
TheonPopInvokedargument isonPopInvokedof PopScope. ThemaxLengthargument will be maxLength in TextFormField of alert dialog.\ -
showTaskLoader<
T> ({required Future< T?> task(), Duration? timeout, dynamic cancelTaskButton, dynamic loadingText, dynamic yesButton, dynamic noButton, dynamic cancelConfirmationText, void onError(Object?)?, void onCancel()?, Widget? remainTimeWidget(Duration)?}) → Future<T?> -
Available on BuildContext, provided by the DialogExt extension
Shows a task loader dialog and executes a task asynchronously.