pro_dialog library

Classes

DialogButton
Represents a single action button inside a showProDialog call.
ProDialogTheme
Full theme configuration for showProDialog.

Enums

DialogAnimationStyle
Controls the dialog's entry and exit animation style.
DialogButtonStyle
Visual style variants for DialogButton.
DialogType
The visual and behavioral type of the dialog.
IconAnimationStyle
Controls the icon's looping or one-shot animation.

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.