1
0
forked from firka/firka

fix: cover full visible grid on month view refresh

This commit is contained in:
2026-09-16 14:31:14 +02:00
parent 34d386c033
commit c1d677b4df

View File

@@ -360,10 +360,14 @@ class _HomeTimetableMonthlyScreen
right: 20,
),
child: RefreshIndicator(
// NOT currentMonthStart/End: End is built inclusive for
// display, but getLessonsCovering treats `to` as
// exclusive, so the last day of the month was never
// actually refreshed. Use the visible grid's own bounds.
onRefresh: () => widget.data.client!.pullRefresh(
() => widget.data.client!.getLessonsCovering(
currentMonthStart,
currentMonthEnd,
dates.first,
dates.last.add(const Duration(days: 1)),
),
),
child: GridView.count(