diff --git a/firka/lib/ui/phone/pages/home/home_grades.dart b/firka/lib/ui/phone/pages/home/home_grades.dart index eace90b8..093ea898 100644 --- a/firka/lib/ui/phone/pages/home/home_grades.dart +++ b/firka/lib/ui/phone/pages/home/home_grades.dart @@ -90,7 +90,7 @@ class HomeGradesScreen extends StatelessAsyncWidget { ), SizedBox(height: 16), // TODO: Add graphs here // ...gradeCards, - Container( + SizedBox( height: MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top - 230, diff --git a/firka/lib/ui/phone/pages/home/home_grades_subject.dart b/firka/lib/ui/phone/pages/home/home_grades_subject.dart index 8f827546..89800fac 100644 --- a/firka/lib/ui/phone/pages/home/home_grades_subject.dart +++ b/firka/lib/ui/phone/pages/home/home_grades_subject.dart @@ -83,7 +83,7 @@ class HomeGradesSubjectScreen extends StatelessAsyncWidget { ], ), SizedBox(height: 16), - Container( + SizedBox( height: MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top - 230, diff --git a/firka/lib/ui/phone/pages/home/home_main.dart b/firka/lib/ui/phone/pages/home/home_main.dart index a6b7499d..d1a35441 100644 --- a/firka/lib/ui/phone/pages/home/home_main.dart +++ b/firka/lib/ui/phone/pages/home/home_main.dart @@ -86,8 +86,9 @@ class _HomeMainScreen extends State { var nextLesson = lessons!.getNextLesson(now); int? lessonIndex; - if (currentLesson != null) + if (currentLesson != null) { lessonIndex = lessons!.getLessonNo(currentLesson); + } welcomeWidget = LessonBigWidget( now, lessonIndex, currentLesson, prevLesson, nextLesson); diff --git a/firka/lib/ui/phone/widgets/home_main_starting_soon.dart b/firka/lib/ui/phone/widgets/home_main_starting_soon.dart index b211d54b..585d3d15 100644 --- a/firka/lib/ui/phone/widgets/home_main_starting_soon.dart +++ b/firka/lib/ui/phone/widgets/home_main_starting_soon.dart @@ -19,13 +19,13 @@ class StartingSoonWidget extends StatelessWidget { var min = diff.inMinutes % 60; var sec = diff.inSeconds % 60; - var hour_txt = hour == 1 + var hourTxt = hour == 1 ? AppLocalizations.of(context)!.starting_hour : AppLocalizations.of(context)!.starting_hour_plural; - var min_txt = hour == 1 + var minTxt = hour == 1 ? AppLocalizations.of(context)!.starting_min : AppLocalizations.of(context)!.starting_min_plural; - var sec_txt = hour == 1 + var secTxt = hour == 1 ? AppLocalizations.of(context)!.starting_sec : AppLocalizations.of(context)!.starting_sec_plural; @@ -55,7 +55,7 @@ class StartingSoonWidget extends StatelessWidget { .apply(color: appStyle.colors.textPrimary)), SizedBox(width: 2), Text( - hour_txt, + hourTxt, style: appStyle.fonts.B_16R .apply(color: appStyle.colors.textPrimary), ), @@ -70,7 +70,7 @@ class StartingSoonWidget extends StatelessWidget { .apply(color: appStyle.colors.textPrimary)), SizedBox(width: 2), Text( - min_txt, + minTxt, style: appStyle.fonts.B_16R .apply(color: appStyle.colors.textPrimary), ), @@ -85,7 +85,7 @@ class StartingSoonWidget extends StatelessWidget { .apply(color: appStyle.colors.textPrimary)), SizedBox(width: 2), Text( - sec_txt, + secTxt, style: appStyle.fonts.B_16R .apply(color: appStyle.colors.textPrimary), ),