diff --git a/lib/view/pages/timetable/custonTimetableColors.dart b/lib/view/pages/timetable/custonTimetableColors.dart index 17cc807..bd21695 100644 --- a/lib/view/pages/timetable/custonTimetableColors.dart +++ b/lib/view/pages/timetable/custonTimetableColors.dart @@ -27,7 +27,7 @@ class TimetableColors { } static Color getColorFromString(String color){ - return getDisplayOptions(CustomTimetableColors.values.firstWhere((element) => element.name == color)).color; + return getDisplayOptions(CustomTimetableColors.values.firstWhere((element) => element.name == color, orElse: () => CustomTimetableColors.orange)).color; } }