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

This commit is contained in:
2024-01-28 16:40:52 +01:00
parent 8db1139d0d
commit 395d74ed4e
3 changed files with 6 additions and 12 deletions

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,