Erweiterungen
This commit is contained in:
1 parent
20a1309946
commit
25a2455ce1
18 files changed
+2272
-1261
No files matched your search
@@ -320,3 +320,21 @@ String mapTourMode(String mode) {
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
Future<void> showAlertDialog(BuildContext context, String title, String message) async {
|
||||
await showDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: Text(title),
|
||||
content: Text(message),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: const Text('OK'),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user