flutter_alert

Last updated:

0 purchases

flutter_alert Image
flutter_alert Images
Add to Cart

Description:

flutter alert

flutter_alert #

Flutter package which shows a crossplatform alert messages on Android (Material) and iOS (Cupertino).
Getting Started #
Add this to your package's pubspec.yaml file:
dependencies:
flutter_alert: ^0.4.0
copied to clipboard
You can install packages from the command line:
$ flutter packages get
copied to clipboard
Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.
Example #
In your Dart code, add this import:
import 'package:flutter_alert/flutter_alert.dart';
copied to clipboard
And later show an alert when neccessary:
void _showMessageDialog() {
showAlert(
context: context,
title: "Awesome feature enabled.",
);
}

void _showQuestionDialog() {
showAlert(
context: context,
title: "Delete file?",
body: "Should we delete the file XYZ?",
actions: [
AlertAction(
text: "Delete",
isDestructiveAction: true,
onPressed: () {
// TODO
},
),
],
cancelable: true,
);
}
copied to clipboard
Contributors #
Thanks goes to these people (emoji key):





Christoph Jerolimov💻 📖 ⚠️
Christian Stahl💻 🤔
Pascal Welsch🤔




This project follows the all-contributors specification.
Contributions of any kind welcome!

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.