alert_banner 1.0.1 alert_banner: ^1.0.1 copied to clipboard
A powerful & beautiful alert banner that animates a message to the user.
🔥 A powerful & beautiful alert banner that animates a message to the user 🔥 #
One simple way to use 📚 #
Here is a quick example. Simply call showAlertBanner(...)
.
TextButton(
onPressed: () => showAlertBanner( // <-- The function!
context,
() => print("TAPPED"),
const ExampleAlertBannerChild(), // <-- Put any widget here you want!
alertBannerLocation: AlertBannerLocation.bottom,
),
child: const Text("Show alert"),
// .. EDIT MORE FIELDS HERE ...
),
Installing 🧑🏫 #
-
Install the package from the pub.
-
flutter pub add alert_banner
-
Import the package.
-
import 'package:alert_banner/exports.dart';
Example Gif 📸 #
Additional Info 📣 #
-
The package is always open to improvements, suggestions, and additions!
-
I'll look through PRs and issues as soon as I can!