Emerge Alert Dialog
An emerge alert dialog package is allows developers to easily create and display alert dialogs with custom animations. Emerge dialogs are used to display important information or messages to the user and often include a call to action, such as a button to confirm or dismiss the dialog.
In the context of the Emerge framework, an Alert Dialog is a type of dialog box that can be used to display an alert message or to prompt the user for a response within the context of an Emerge application.
Usage
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
emerge_alert_dialog: ^0.0.3
How to use
Future<void> _showMyDialog(BuildContext context) async {
return showDialog<void>(
context: context,
barrierDismissible: true,
builder: (BuildContext context) {
return EmergeAlertDialog(
alignment: Alignment.bottomCenter,
emergeAlertDialogOptions: EmergeAlertDialogOptions(
title: const Text("Privacy Info"),
),
);
},
);
}
Comments are closed.