https://github.com/mattrltrent/alert_banner
A powerful & beautiful alert banner that animates a message to the user. Pub package.
https://github.com/mattrltrent/alert_banner
dart flutter package package-manager pub
Last synced: 12 days ago
JSON representation
A powerful & beautiful alert banner that animates a message to the user. Pub package.
- Host: GitHub
- URL: https://github.com/mattrltrent/alert_banner
- Owner: mattrltrent
- License: mit
- Created: 2023-01-09T07:52:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T03:34:26.000Z (over 1 year ago)
- Last Synced: 2025-04-30T21:54:12.772Z (12 days ago)
- Topics: dart, flutter, package, package-manager, pub
- Language: C++
- Homepage: https://pub.dev/packages/alert_banner
- Size: 8.68 MB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔥 A powerful & beautiful alert banner that animates a message to the user 🔥
- Submit an issue [here](https://github.com/mattrltrent/alert_banner/issues).
- Create a pull request [here](https://github.com/mattrltrent/alert_banner/pulls).
- Contact me via email [here](mailto:[email protected]).
## One simple way to use 📚
Here is a quick example. Simply call `showAlertBanner(...)`.
```dart
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](https://github.com/mattrltrent/alert_banner/issues), [suggestions](mailto:[email protected]), and [additions](https://github.com/mattrltrent/alert_banner/pulls)!
- I'll look through PRs and issues as soon as I can!
- [Learn about me](https://matthewtrent.me).
