dialog static method
Implementation
static Future<void> dialog(
BuildContext context,
String title,
String message,
) async {
await showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
backgroundColor: GlThemeColors.get(context).background,
title: Text(title),
content: Text(message),
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(
'OK',
style: TextStyle(color: GlThemeColors.get(context).primary),
),
),
],
);
},
);
}