Skip to content
pubscout

top_snackbar_flutter

3.5.0, released 3 weeks ago by lanars.com

Display customizable snackbars dropping down from the top of the screen

WASM-readyUses material_uiRock solid
$ flutter pub add top_snackbar_flutter
Source repository

What it does

Provides a convenient function to display overlay-based notifications sliding down from the top of the screen. Supports custom widgets, built-in success, info, and error layouts, swipe-to-dismiss, and persistent snackbars.

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

Use it when

  • You need to inform users of errors, warnings, or successes via a top-anchored banner.
  • You want a drop-in replacement for bottom snackbars positioned at the top of the app.

Skip it when

  • You need complex local or push notification management backed by system services.
  • You prefer purely declarative state-driven snackbar management.

Strengths

  • Simple function-based API similar to showDialog or showTopSnackBar.
  • Supports custom widgets or included pre-styled CustomSnackBar components.
  • Provides advanced options like persistent snackbars and multi-directional swipe dismissal.

Weaknesses

  • Requires manual Overlay context management.
  • Relies on imperative function calls rather than a declarative builder or state provider.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
showTopSnackBar(
    Overlay.of(context),
    CustomSnackBar.success(
      message: "Good job, your release is successful. Have a nice day",
    ),
);

Alternatives

Packages that do the same job and could replace top_snackbar_flutter.

  • toastification

    Alternative toast/snackbar notification library with extensive styling and configuration options.

  • bot_toast

    Feature-rich toast and overlay management library for Flutter.

  • another_flushbar

    Customizable flushbar notifications that can be positioned at the top or bottom.

Works with

Packages commonly used together with top_snackbar_flutter: ones it builds on, ones built on it, and its own family.