#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

@ -2,4 +2,8 @@ extension IsSameDay on DateTime {
bool isSameDay(DateTime other) {
return year == other.year && month == other.month && day == other.day;
}
DateTime nextWeekday(int day) {
return add(Duration(days: (day - weekday) % DateTime.daysPerWeek));
}
}