Skip to content
pubscout

floating_snackbar

2.0.0, released 5 months ago by ameeen.me

Customizable floating snackbars and toasts with variants, positioning, progress bars, and context-free overlay.

WASM-ready
$ flutter pub add floating_snackbar
Source repository

What it does

Provides customizable floating snackbars and toasts in success, error, warning, and info variants. Supports top and bottom positioning, actions, countdown progress bars, entrance animations, and a context-free overlay mode using a navigator key.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to display floating toasts or snackbars with optional titles, icons, and action buttons.
  • You need to show snackbars from non-widget layers like services or blocs without a BuildContext.
  • You want a pure Dart solution working across all Flutter platforms without native code.

Skip it when

  • You require fully persistent local or push notifications delivered by the operating system system-wide.
  • You rely on standard Material platform SnackBar behaviors and animations precisely.

Strengths

  • Supports context-free display via a navigator key for services and blocs.
  • Includes built-in variants (success, error, warning, info) with custom colors and icons.
  • Offers rich content options like titles, leading widgets, trailing action buttons, and progress indicators.
  • Pure Dart package working on all platforms.

Weaknesses

  • Limited to overlay-based snackbar/toast notifications rather than persistent system notifications.
  • Imperative display approach means managing UI states programmatically.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Optionally wire up the navigator key for context-free display.

FloatingSnackBar.success(context, 'Saved successfully!');

Alternatives

Packages that do the same job and could replace floating_snackbar.