diff --git a/firka/lib/ui/phone/pages/home/home_grades.dart b/firka/lib/ui/phone/pages/home/home_grades.dart index ce645ec..9b9247d 100644 --- a/firka/lib/ui/phone/pages/home/home_grades.dart +++ b/firka/lib/ui/phone/pages/home/home_grades.dart @@ -257,17 +257,17 @@ class _HomeGradesScreen extends FirkaState { ), ], ), - FirkaCard( - left: [ - Text( - widget.data.l10n.class_avg, - style: appStyle.fonts.B_16SB.apply( - color: appStyle.colors.textPrimary, + if (classAverage != null) + FirkaCard( + left: [ + Text( + widget.data.l10n.class_avg, + style: appStyle.fonts.B_16SB.apply( + color: appStyle.colors.textPrimary, + ), ), - ), - ], - right: [ - if (classAverage != null) + ], + right: [ Container( width: 48, height: 26, @@ -289,8 +289,8 @@ class _HomeGradesScreen extends FirkaState { ), ), ), - ], - ), + ], + ), FirkaCard( left: [ Text(