Skip to content
pubscout

alert_banner

1.0.1, released 3 years ago by matthewtrent.me

Shows a customizable animated alert banner at the top or bottom of the screen.

WASM-ready
$ flutter pub add alert_banner
Source repository

What it does

The package provides a function to display an alert banner with any widget as its content. It supports positioning, tap callbacks, and simple animation out of the box.

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

Use it when

  • you need a quick, lightweight way to show temporary messages
  • you want a banner that can contain custom widgets
  • you prefer a single function call over building a custom overlay

Skip it when

  • you require complex interaction patterns or multi‑step flows
  • you need built‑in theming or extensive style customization beyond the provided options

Strengths

  • very easy to integrate
  • minimal API – just call showAlertBanner
  • supports custom child widgets

Weaknesses

  • limited styling options
  • no built‑in theming or dark‑mode handling
  • no advanced animation controls

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TextButton(
  onPressed: () => showAlertBanner(
    context,
    () => print("TAPPED"),
    const ExampleAlertBannerChild(),
    alertBannerLocation: AlertBannerLocation.bottom,
  ),
  child: const Text("Show alert"),
);

Alternatives

Packages that do the same job and could replace alert_banner.

  • full_screen_menu

    Full screen overlay menu for Flutter apps with customized items and gradients.

  • info_popup

    A customizable tooltip and popup overlay widget with optional target highlighting.

  • swipable_stack

    A widget for stacking cards that users can swipe horizontally and vertically.

  • alert_info

    Displays an animated top or bottom alert banner with optional icon, action, and customization.