#10 Fixed gray background in timetable on days outside of given range

This commit is contained in:
MineTec committed 2024-01-28 16:40:52 +01:00
1 parent 8db1139d0d
commit 395d74ed4e
3 files changed
+6 -12

No files matched your search

+2 -2
View File
@@ -102,8 +102,8 @@ class _TimetableState extends State<Timetable> {
view: CalendarView.workWeek,
dataSource: _buildTableEvents(value),
maxDate: DateTime.now().add(const Duration(days: 7)),
minDate: DateTime.now().subtract(const Duration (days: 14)),
maxDate: DateTime.now().add(const Duration(days: 7)).nextWeekday(DateTime.saturday),
minDate: DateTime.now().subtract(const Duration (days: 14)).nextWeekday(DateTime.sunday),
controller: controller,