standard_dialogs library

Classes

DialogAction<T>
Class to represent an action (button) of dialogs. [...]
DialogChoice<T>
Class to represent a choice in the dialogues that list a choice list. [...]
StandardDialogsLocalizations
StandardDialogsLocalizationsDelegate

Functions

showAwaitDialog<T>(BuildContext context, {Widget message, Future<T> function(BuildContext context, dynamic updateMessage(Widget message)), Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog with a CircularProgressIndicator while a process is running. [...]
showBasicDialog<T>(BuildContext context, {Widget title, Widget content, List<DialogAction<T>> actions, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a basic dialog with title and simple content, with the possibility to add customizable action buttons. [...]
showChoicesButtonDialog<T>(BuildContext context, {Widget title, Widget content, List<DialogChoice<T>> choices, Widget cancelWidget, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog with the choices informed in the parameter choices similar to a ListTile. [...]
showChoicesCheckBoxDialog<T>(BuildContext context, {Widget title, Widget content, List<DialogChoice<T>> choices, Widget cancelWidget, Widget confirmWidget, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<List<T>>
Displays a dialog with the choices informed in the parameter choices using checkboxes. [...]
showChoicesRadioDialog<T>(BuildContext context, {Widget title, Widget content, List<DialogChoice<T>> choices, Widget cancelWidget, Widget confirmWidget, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog with the choices informed in the parameter choices using radio buttons. [...]
showErrorDialog<T>(BuildContext context, {Widget icon = const Icon(Icons.error), Widget title, Widget content, DialogAction<T> action, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog to indicate the result of an action that resulted in an error. [...]
showResultDialog<T>(BuildContext context, {Color backgroundColor, Color textColor, Widget icon, dynamic title, Widget content, DialogAction<T> action, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Generic method used to generate the dialogs of success, warning and error. [...]
showSuccessDialog<T>(BuildContext context, {Widget icon = const Icon(Icons.check_circle), Widget title, Widget content, DialogAction<T> action, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog to indicate the result of an action that has been successfully performed [...]
showWarningDialog<T>(BuildContext context, {Widget icon = const Icon(Icons.warning), Widget title, Widget content, DialogAction<T> action, bool barrierDismissible = false, Color barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings routeSettings}) Future<T>
Displays a dialog to warn the user about something that needs attention. [...]

Enums

DialogChoicesType
DialogResult
ResultDialogLocalizationsEnum