Skip to content
pubscout

alert_info

0.0.8, released 11 months ago by an unverified publisher

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

WASM-ready
$ flutter pub add alert_info
Source repository

What it does

Shows a temporary alert banner that slides in from the top or bottom of the screen. The banner can display different types (info, success, warning, error) with corresponding icons and colors, and supports custom icons, actions, and theming.

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

Use it when

  • You need a lightweight, customizable replacement for SnackBar.
  • You want an animated banner that can appear from top or bottom with optional action button.

Skip it when

  • You require persistent or background notifications.
  • You need complex dialog interactions or multi‑step flows.

Strengths

  • Simple API with a single static call.
  • Built‑in theming for light/dark modes.
  • Supports custom icons, colors, and action callbacks.

Weaknesses

  • Only one alert at a time; no built‑in queue.
  • Limited to brief messages; not suitable for rich content.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
AlertInfo.show(context: context, text: 'Message to be displayed', typeInfo: TypeInfo.success, position: MessagePosition.bottom, action: 'Undo', actionCallback: () { /* handle */ });

Alternatives

Packages that do the same job and could replace alert_info.