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

The title argument is used to title of alert dialog. The content argument is used to content of alert dialog. The textOK argument is used to text for 'OK' Button of alert dialog. The textCancel argument is used to text for 'Cancel' Button of alert dialog. The canPop argument is canPop of PopScope. The onPopInvoked argument is onPopInvoked of 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

The title argument is used to title of alert dialog.
The textOK argument is used to text for 'OK' Button of alert dialog.
The textCancel argument is used to text for 'Cancel' Button of alert dialog.
The initialValue argument is used to an initial value of alert dialog.
The isSelectedInitialValue argument is used to select an initial value of alert dialog.
The hintText argument will be hintText in TextFormField of alert dialog.
The validator argument will be validator in TextFormField of alert dialog.
The minLines argument will be minLines in TextFormField of alert dialog.
The maxLines argument will be maxLines in TextFormField of alert dialog.
The autoFocus argument will be autoFocus in TextFormField of alert dialog.
The keyboardType argument will be keyboardType in TextFormField of alert dialog.
The textInputAction argument will be textInputAction in TextFormField of alert dialog.
The obscureText argument will be obscureText in TextFormField of alert dialog.
The obscuringCharacter argument will be obscuringCharacter in TextFormField of alert dialog.
The showPasswordIcon visible for show password icon. default is false.
The barrierDismissible argument will be barrierDismissible showDialog form of alert dialog.
The textCapitalization argument will be textCapitalization in TextFormField of alert dialog.
The textAlign argument will be textAlign in TextFormField of alert dialog.
The controller argument will be controller in TextFormField of alert dialog.
The decoration argument will allow modification of the text field decoration. The hintText and suffixIcon fields will be overridden.
The canPop argument is canPop of PopScope.
The onPopInvoked argument is onPopInvoked of PopScope. The maxLength argument 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.