flash
3.1.1, released 2 years ago by an unverified publisher
Customizable alert and toast widget for Flutter
WASM-ready
What it does
Provides FlashBar, FlashToast, FlashDialog and other alert widgets that can be shown anywhere in the app with rich customization options.
AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need a customizable toast or snackbar replacement
- Require modal alerts or persistent notifications
- Want to control animation and position of alerts
Skip it when
- Already using Flutter's built-in Snackbar for simple alerts
- Only need very lightweight alerts without customization
Strengths
- Highly customizable with themes and builders
- Supports multiple positions (top, bottom, center, toast, dialog)
- Built-in animation and barrier tap handling
- Fully Dart implementation, no native code
Weaknesses
- No built‑in analytics or logging
- Not a state‑management or networking library
- Requires manual import and setup
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add `flash: ^3.1.0` to pubspec and `import 'package:flash/flash.dart';`
import 'package:flash/flash.dart';
FlashBar(
title: "Hello",
message: "This is a flash message",
position: FlashPosition.top,
).show(context);Alternatives
Packages that do the same job and could replace flash.
- toastification
Provides similar toast functionality with built‑in themes and easy configuration
91Compare
Works with
Packages commonly used together with flash: ones it builds on, ones built on it, and its own family.