showSimpleAlertDialog static method
void
showSimpleAlertDialog(
- BuildContext context,
- String title,
- String message,
- String buttonText,
- Function onPressed,
Implementation
static void showSimpleAlertDialog(
BuildContext context,
String title,
String message,
String buttonText,
Function onPressed,
) {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: new Text(title),
content: new Text(message),
actions: [
// submitButton(
// buttonText,
// onPressed(),
// ),
new TextButton(
onPressed: () {
return onPressed();
},
child: new Text(buttonText),
)
],
);
},
);
}