pro_dialog
library
Functions
-
showErrorDialog<T>(BuildContext context, {String title = 'Error', String? description, List<DialogButton> buttons = const [], ProDialogTheme? theme})
→ Future<T?>
-
Shows a DialogType.error dialog with sensible defaults.
-
showLoadingDialog<T>(BuildContext context, {String title = 'Processing…', String? description, ProDialogTheme? theme})
→ Future<T?>
-
Shows a loading dialog that cannot be dismissed by tapping outside.
Call Navigator.pop(context) when the operation finishes.
-
showProDialog<T>(BuildContext context, {DialogType type = DialogType.custom, String? title, String? description, IconData? icon, Color? iconColor, Color? iconBackgroundColor, Widget? customContent, List<DialogButton> buttons = const [], Axis buttonsAxis = Axis.horizontal, bool isLoading = false, bool barrierDismissible = true, bool showCloseButton = false, Duration? autoDismissAfter, VoidCallback? onDismiss, ProDialogTheme? theme})
→ Future<T?>
-
Displays a
ProDialog over the current route.
-
showSuccessDialog<T>(BuildContext context, {String title = 'Success', String? description, List<DialogButton> buttons = const [], ProDialogTheme? theme})
→ Future<T?>
-
Shows a DialogType.success dialog with sensible defaults.
-
showWarningDialog<T>(BuildContext context, {String title = 'Warning', String? description, List<DialogButton> buttons = const [], ProDialogTheme? theme})
→ Future<T?>
-
Shows a DialogType.warning dialog with sensible defaults.