showErrorDialog static method
void
showErrorDialog(
- BuildContext context,
- String title,
- String message,
- String actionButtonText,
Implementation
static void showErrorDialog(BuildContext context, String title,
String message, String actionButtonText) {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
title: Text(title),
content: Text(message),
actions: [
TextButton(
onPressed: () {
Navigator.pop(context);
},
child: Text(actionButtonText),
),
],
);
});
}