dialogs/result_dialog library

Functions

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.