SavePointsSnackbar class
Modern, customizable snackbar widget with enhanced UI/UX.
This class provides methods to display beautiful snackbars with:
- Multiple types (success, error, warning, info)
- Rich animations
- Progress indicators
- Gradient backgrounds
- Top or bottom positioning
- Dark mode support
Example:
SavePointsSnackbar.showSuccess(
context,
title: 'Success!',
subtitle: 'Operation completed',
);
Constructors
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, String? subtitle, Color? background, Gradient? gradient, Duration? duration, IconData? icon, Color? iconColor, VoidCallback? onActionPressed, String? actionLabel, SnackbarType? type, SnackbarPosition? position, SnackbarAnimation? animation, SnackbarAnimationDirection? startAnimation, SnackbarAnimationDirection? endAnimation, bool? showProgressIndicator, bool hideLikeCircle = false, bool? dismissible, bool? enableHapticFeedback, bool? dismissOnTap, double? maxWidth, EdgeInsets? margin, BorderRadius? borderRadius, Color? borderColor, double? borderWidth, VoidCallback? onDismissed, VoidCallback? onTap, ContentDesignStyle? designStyle, double? blur, ImageFilter? backdropFilter}) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> - Shows a modern floating snackbar with enhanced features.
-
showError(
BuildContext context, {required String title, String? subtitle, Duration? duration, VoidCallback? onActionPressed, String? actionLabel, SnackbarPosition? position, bool showProgressIndicator = false, ContentDesignStyle? designStyle, double? blur, ImageFilter? backdropFilter}) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> - Quick method to show error snackbar
-
showSuccess(
BuildContext context, {required String title, String? subtitle, Duration? duration, VoidCallback? onActionPressed, String? actionLabel, SnackbarPosition? position, bool showProgressIndicator = false, ContentDesignStyle? designStyle, double? blur, ImageFilter? backdropFilter}) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> - Quick method to show success snackbar
-
showWarning(
BuildContext context, {required String title, String? subtitle, Duration? duration, VoidCallback? onActionPressed, String? actionLabel, SnackbarPosition? position, bool showProgressIndicator = false, ContentDesignStyle? designStyle, double? blur, ImageFilter? backdropFilter}) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> - Quick method to show warning snackbar