From c1d677b4df3677c4429f2ed6e76db76818d273a9 Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Wed, 16 Sep 2026 14:31:14 +0200 Subject: [PATCH] fix: cover full visible grid on month view refresh --- firka/lib/ui/phone/pages/home/home_timetable_mo.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firka/lib/ui/phone/pages/home/home_timetable_mo.dart b/firka/lib/ui/phone/pages/home/home_timetable_mo.dart index 033971c9..f90ebab2 100644 --- a/firka/lib/ui/phone/pages/home/home_timetable_mo.dart +++ b/firka/lib/ui/phone/pages/home/home_timetable_mo.dart @@ -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(