Skip to main content

snackbar_alert 1.0.1 copy "snackbar_alert: ^1.0.1" to clipboard
snackbar_alert: ^1.0.1 copied to clipboard

A simple Flutter package for success and error snackbars.

SnackBarAlert #

A highly customizable animated snackbar package for Flutter with multiple types, optional right widgets, and an optional bottom progress bar.
Supports slide + fade animations for both showing and dismissing.


Example Screenshot #

SnackBar Example

Features #

  • ✅ Multiple snackbar types:
    • Success ✅
    • Error ❌
    • Warning ⚠️
    • Info ℹ️
    • Normal 🔔
  • 💬 Progress snackbar (showProgress) with bottom linear progress indicator:
    • Determinate or indeterminate progress
    • Progress bar does not overlap right widget
  • Customizable:
    • TextStyle textStyle
    • Radius radius
    • Widget rightWidget
    • Color backgroundColor
    • Widget icon
  • Slide + fade animation for entry and exit

Installation #

Add this to your pubspec.yaml:

dependencies:
  snackbar_alert: ^1.0.1

## Usage

// Normal success snackbar
SnackBarAlert.show(context, "Profile updated!", type: SnackBarType.success);

// Snackbar with right widget
SnackBarAlert.show(
  context,
  "Undo delete?",
  type: SnackBarType.warning,
  rightWidget: TextButton(
    onPressed: () {},
    child: const Text("UNDO", style: TextStyle(color: Colors.white)),
  ),
);

// Progress snackbar
SnackBarAlert.showProgress(
  context,
  "Uploading file...",
  progress: 0.4, // optional
);
1
likes
160
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple Flutter package for success and error snackbars.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on snackbar_alert