From f55ec7c52540a3ba63d9292934432ce54707476e Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Sun, 7 Sep 2025 16:43:37 +0200 Subject: [PATCH] tt: switch to monday if the week isn't the current one closes #44 --- firka/lib/ui/phone/pages/home/home_timetable.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firka/lib/ui/phone/pages/home/home_timetable.dart b/firka/lib/ui/phone/pages/home/home_timetable.dart index 72062971..c85102d7 100644 --- a/firka/lib/ui/phone/pages/home/home_timetable.dart +++ b/firka/lib/ui/phone/pages/home/home_timetable.dart @@ -349,6 +349,11 @@ class _HomeTimetableScreen extends State { ), onTap: () async { var newNow = now!.add(Duration(days: 7)); + now = newNow; + if (now!.getMonday().getMidnight() == + timeNow().getMonday().getMidnight()) { + now = timeNow(); + } await initForWeek(newNow); setState(() { now = newNow;