diff --git a/firka/lib/l10n b/firka/lib/l10n index 2ac00c3..138d4d9 160000 --- a/firka/lib/l10n +++ b/firka/lib/l10n @@ -1 +1 @@ -Subproject commit 2ac00c3bea85db999c961eabf02dd8515f08e75f +Subproject commit 138d4d97641743a2e0203643fefe49244d6412f1 diff --git a/firka/lib/ui/components/common_bottom_sheets.dart b/firka/lib/ui/components/common_bottom_sheets.dart index ac9e276..1f7bd55 100644 --- a/firka/lib/ui/components/common_bottom_sheets.dart +++ b/firka/lib/ui/components/common_bottom_sheets.dart @@ -1245,15 +1245,6 @@ class _GradeCalculatorSheetContentState ), ), ), - if (entries.isNotEmpty) ...[ - SizedBox(height: 16), - Text( - '${widget.data.l10n.subject_avg}: ${_weightedAverage.toStringAsFixed(2)}', - style: appStyle.fonts.B_14R.apply( - color: appStyle.colors.textPrimary, - ), - ), - ], ], ); } 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 807d10a..087bc60 100644 --- a/firka/lib/ui/phone/pages/home/home_grades_subject.dart +++ b/firka/lib/ui/phone/pages/home/home_grades_subject.dart @@ -131,7 +131,17 @@ class _HomeGradesSubjectScreen extends FirkaState { }).toList(); var gradeWidgets = List.empty(growable: true); - gradeWidgets.addAll(ghostGradeWidgets); + if (ghostGradeWidgets.isNotEmpty) { + gradeWidgets.add( + Text( + widget.data.l10n.ghost_grades, + style: appStyle.fonts.B_16R.apply( + color: appStyle.colors.textPrimary, + ), + ), + ); + gradeWidgets.addAll(ghostGradeWidgets); + } for (var group in groups.entries) { gradeWidgets.add(SizedBox(height: 8));