Fixed timetable crashing when query date reaches into holidays

This commit is contained in:
2023-07-17 12:29:26 +02:00
parent a5b2242dc3
commit 6548ff360a
4 changed files with 130 additions and 137 deletions

View File

@ -62,9 +62,6 @@ class _TimetableState extends State<Timetable> {
),
body: Consumer<TimetableProps>(
builder: (context, value, child) {
if(value.primaryLoading()) return const LoadingSpinner();
GetHolidaysResponse holidays = value.getHolidaysResponse;
if(value.hasError) {
return PlaceholderView(
@ -79,6 +76,10 @@ class _TimetableState extends State<Timetable> {
);
}
if(value.primaryLoading()) return const LoadingSpinner();
GetHolidaysResponse holidays = value.getHolidaysResponse;
return GestureDetector(
onScaleStart: (details) => baseElementScale = elementScale,
onScaleUpdate: (details) {