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
Thetitle
argument is used to title of alert dialog. Thecontent
argument is used to content of alert dialog. ThetextOK
argument is used to text for 'OK' Button of alert dialog. ThetextCancel
argument is used to text for 'Cancel' Button of alert dialog. ThecanPop
argument iscanPop
of PopScope. TheonPopInvoked
argument isonPopInvoked
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
Thetitle
argument is used to title of alert dialog.
ThetextOK
argument is used to text for 'OK' Button of alert dialog.
ThetextCancel
argument is used to text for 'Cancel' Button of alert dialog.
TheinitialValue
argument is used to an initial value of alert dialog.
TheisSelectedInitialValue
argument is used to select an initial value of alert dialog.
ThehintText
argument will be hintText in TextFormField of alert dialog.
Thevalidator
argument will be validator in TextFormField of alert dialog.
TheminLines
argument will be minLines in TextFormField of alert dialog.
ThemaxLines
argument will be maxLines in TextFormField of alert dialog.
TheautoFocus
argument will be autoFocus in TextFormField of alert dialog.
ThekeyboardType
argument will be keyboardType in TextFormField of alert dialog.
ThetextInputAction
argument will be textInputAction in TextFormField of alert dialog.
TheobscureText
argument will be obscureText in TextFormField of alert dialog.
TheobscuringCharacter
argument will be obscuringCharacter in TextFormField of alert dialog.
TheshowPasswordIcon
visible for show password icon. default is false.
ThebarrierDismissible
argument will be barrierDismissible showDialog form of alert dialog.
ThetextCapitalization
argument will be textCapitalization in TextFormField of alert dialog.
ThetextAlign
argument will be textAlign in TextFormField of alert dialog.
Thecontroller
argument will be controller in TextFormField of alert dialog.
Thedecoration
argument will allow modification of the text field decoration. ThehintText
andsuffixIcon
fields will be overridden.
ThecanPop
argument iscanPop
of PopScope.
TheonPopInvoked
argument isonPopInvoked
of PopScope. ThemaxLength
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.