finished schedules screens

This commit is contained in:
2026-01-01 12:53:20 -06:00
parent 00c54159d4
commit 331d926c2b
5 changed files with 282 additions and 68 deletions

View File

@@ -5,10 +5,16 @@ SnackBar errorSnackbar(
Color backgroundColor = const Color.fromARGB(255, 196, 26, 14),
Duration duration = const Duration(seconds: 3),
}) {
final errorText = e is String
? e
: (e.toString().contains(':')
? e.toString().substring(e.toString().indexOf(':') + 1).trim()
: e.toString());
return SnackBar(
backgroundColor: Color.fromARGB(255, 196, 26, 14),
content: Text(
e.toString().replaceFirst(RegExp(r'^[^:]+:\s*'), ''),
errorText,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 15,