grade page done in summary

This commit is contained in:
Kima
2023-06-16 01:30:17 +02:00
parent ce1c5eb0d8
commit 551b2849fe
12 changed files with 340 additions and 27 deletions

View File

@@ -252,7 +252,10 @@ class LiveCardProvider extends ChangeNotifier {
}
}
if (currentLesson != null) {
if (now.isBefore(DateTime(now.year, DateTime.august, 31)) &&
now.isAfter(DateTime(now.year, DateTime.june, 14))) {
currentState = LiveCardState.summary;
} else if (currentLesson != null) {
currentState = LiveCardState.duringLesson;
} else if (nextLesson != null && prevLesson != null) {
currentState = LiveCardState.duringBreak;