@@ -622,7 +622,7 @@ class _HomePageState extends VisibilityAwareState<HomePage> {
622622 .appendIf (homeworksWidget, homeworksLast)
623623 .toList ()
624624 :
625- // ---------- Material home screen ----------
625+ // ---------- Material home screen ----------
626626 < Widget > [
627627 CardContainer (
628628 radius: 25 ,
@@ -769,36 +769,37 @@ class _HomePageState extends VisibilityAwareState<HomePage> {
769769 child: Container (
770770 margin: EdgeInsets .only (),
771771 child: Row (
772+ crossAxisAlignment: CrossAxisAlignment .start,
772773 children: [
773- Text (
774- // If the "next" lesson is the first one
775- (nextLesson != null &&
776- (currentDay? .lessonsStrippedCancelled
777- .firstWhereOrDefault (
778- (l) => l? .any ((x) => ! x.isCanceled) ?? false )
779- ? .any ((x) => x == nextLesson) ??
780- false ))
781- ? 'D8F15F8A-2EA6-474D-80B8-E71625B3D121' .localized
782- : // If the "next" lesson is the last one
774+ Text (
775+ // If the "next" lesson is the first one
783776 (nextLesson != null &&
784777 (currentDay? .lessonsStrippedCancelled
785- .lastWhereOrDefault (
778+ .firstWhereOrDefault (
786779 (l) => l? .any ((x) => ! x.isCanceled) ?? false )
787780 ? .any ((x) => x == nextLesson) ??
788781 false ))
789- ? '6B3280B8-EDDB-44E2-A2D5-824FE98E8247' .localized
790- : '2754A69F-9E60-4FDA-903B-95CFAB85E982' .localized,
791- style: TextStyle (fontWeight: FontWeight .w500),
792- ),
793- Flexible (
794- child: Container (
795- margin: EdgeInsets .only (right: 3 , left: 3 ),
796- child: Text (
797- nextLesson? .subject? .name ??
798- '/Notifications/Placeholder/Lesson' .localized,
799- style: TextStyle (fontWeight: FontWeight .w500),
800- ))),
801- ].appendIf (
782+ ? 'D8F15F8A-2EA6-474D-80B8-E71625B3D121' .localized
783+ : // If the "next" lesson is the last one
784+ (nextLesson != null &&
785+ (currentDay? .lessonsStrippedCancelled
786+ .lastWhereOrDefault ((l) =>
787+ l? .any ((x) => ! x.isCanceled) ?? false )
788+ ? .any ((x) => x == nextLesson) ??
789+ false ))
790+ ? '6B3280B8-EDDB-44E2-A2D5-824FE98E8247' .localized
791+ : '2754A69F-9E60-4FDA-903B-95CFAB85E982' .localized,
792+ style: TextStyle (fontWeight: FontWeight .w500),
793+ ),
794+ Flexible (
795+ child: Container (
796+ margin: EdgeInsets .only (right: 6 , left: 6 ),
797+ child: Text (
798+ nextLesson? .subject? .name ??
799+ '/Notifications/Placeholder/Lesson' .localized,
800+ style: TextStyle (fontWeight: FontWeight .w500),
801+ ))),
802+ ].appendIf (
802803 Text (
803804 'C33F8288-5BAD-4574-9C53-B54FED6757AC'
804805 .localized
@@ -831,25 +832,26 @@ class _HomePageState extends VisibilityAwareState<HomePage> {
831832 crossAxisAlignment: CrossAxisAlignment .start,
832833 children: [
833834 Row (
835+ crossAxisAlignment: CrossAxisAlignment .start,
834836 children: [
835- Text (
836- 'First:' ,
837- style: TextStyle (fontWeight: FontWeight .w500),
838- ),
839- Flexible (
840- child: Container (
841- margin: EdgeInsets .only (right: 3 , left: 3 ),
842- child: Text (
843- nextDay? .lessonsStrippedCancelled
844- .firstWhereOrDefault (
845- (x) => x? .any ((y) => ! y.isCanceled) ?? false )
846- ? .firstWhereOrDefault ((x) => ! x.isCanceled)
847- ? .subject
848- ? .name ??
849- '/Notifications/Placeholder/Lesson' .localized,
850- style: TextStyle (fontWeight: FontWeight .w500),
851- ))),
852- ].appendIf (
837+ Text (
838+ 'D8F15F8A-2EA6-474D-80B8-E71625B3D121' .localized ,
839+ style: TextStyle (fontWeight: FontWeight .w500),
840+ ),
841+ Flexible (
842+ child: Container (
843+ margin: EdgeInsets .only (right: 6 , left: 6 ),
844+ child: Text (
845+ nextDay? .lessonsStrippedCancelled
846+ .firstWhereOrDefault (
847+ (x) => x? .any ((y) => ! y.isCanceled) ?? false )
848+ ? .firstWhereOrDefault ((x) => ! x.isCanceled)
849+ ? .subject
850+ ? .name ??
851+ '/Notifications/Placeholder/Lesson' .localized,
852+ style: TextStyle (fontWeight: FontWeight .w500),
853+ ))),
854+ ].appendIf (
853855 Text (
854856 'C33F8288-5BAD-4574-9C53-B54FED6757AC' .localized.format (nextDay
855857 ? .lessonsStrippedCancelled
0 commit comments