standard_dialogs
library
Functions
-
showAwaitDialog<T>(BuildContext context, {Key? key, required Widget message, required 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, {Key? key, required Widget title, Widget? content, required 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, {Key? key, required Widget title, Widget? content, required 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, {Key? key, required Widget title, Widget? content, required 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, {Key? key, 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, {Key? key, required Color backgroundColor, required Color textColor, required Widget icon, Widget? 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, {Key? key, 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, {Key? key, 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.