Fixed timetable crashing when query date reaches into holidays
This commit is contained in:
1 parent
a5b2242dc3
commit
6548ff360a
4 files changed
+130
-137
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user