result_dialog library

Functions

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. [...]