SavePointsDialog class

A modern, customizable dialog with glassmorphism design.

This class provides a static method to display beautiful dialogs with:

  • Glassmorphism effects with backdrop blur
  • Multiple animation types
  • Customizable colors, icons, and buttons
  • Loading states for async operations
  • Dark mode support

Example:

SavePointsDialog.show(
  context,
  title: 'Success',
  message: 'Your changes have been saved!',
  icon: Icons.check_circle,
  iconColor: Colors.green,
  onConfirm: () => print('Confirmed'),
);

Constructors

SavePointsDialog()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

show(BuildContext context, {required String title, required String message, String? confirmText, String? cancelText, IconData? icon, Color? iconColor, Color? backgroundColor, Color? confirmButtonColor, Color? cancelButtonColor, bool? showCancelButton, VoidCallback? onConfirm, Future<bool> onConfirmAsync()?, VoidCallback? onCancel, bool? barrierDismissible, DialogAnimationType? animationType, DialogAnimationDirection? startAnimation, DialogAnimationDirection? endAnimation, bool isLoading = false, ValueNotifier<bool>? loadingNotifier, bool hideLikeCircle = false, ContentDesignStyle? designStyle, double? blur, ImageFilter? backdropFilter, Widget? child}) Future<bool?>
Shows a modern dialog with optional icon and buttons.
showCustom<T>({required BuildContext context, required String headerTitle, required Widget child, Color? headerColor, Color? headerTextColor, String? primaryButtonText, String? secondaryButtonText, VoidCallback? onPrimaryPressed, VoidCallback? onSecondaryPressed, Color? primaryButtonColor, Color? secondaryButtonColor, bool showCloseButton = true, VoidCallback? onClose, bool barrierDismissible = true, DialogAnimationDirection? startAnimation, DialogAnimationDirection? endAnimation, double? blur, ImageFilter? backdropFilter}) Future<T?>
Shows a custom dialog with header bar and close button outside the box.