Erweiterungen

This commit is contained in:
Sven committed 2024-02-10 09:12:51 +01:00
1 parent 20a1309946
commit 25a2455ce1
18 files changed
+2272 -1261

No files matched your search

+18
View File
@@ -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'),
),
],
);
}
);
}