Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T03:34:26.000Z (12 months ago)
- Last Synced: 2023-12-02T05:26:45.181Z (12 months ago)
- Topics: dart, flutter, package, package-manager, pub
- Language: C++
- Homepage: https://pub.dev/packages/alert_banner
- Size: 8.68 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- 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).
![analytics](https://hidden-coast-90561-45544df95b1b.herokuapp.com/api/v1/analytics/?kind=package-alert-banner)