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
);

Libraries

snackbar_alert