Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)