first implementation finished

This commit is contained in:
Fabian Freund
2024-04-22 11:21:01 +02:00
parent 1a13ca0795
commit 0e1972242a
102 changed files with 7192 additions and 55 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'package:flutter/material.dart';
void showErrorMessage(BuildContext context, String message) {
final snackBar = SnackBar(
content: Text(
message,
style: TextStyle(
color: Theme.of(context).colorScheme.error,
),
),
backgroundColor: Theme.of(context).colorScheme.onError,
);
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}