feat: remove class average widget if there is no data

This commit is contained in:
checkedear
2026-06-09 13:21:41 +02:00
parent d858c38bb1
commit 414a1ad254

View File

@@ -257,17 +257,17 @@ class _HomeGradesScreen extends FirkaState<HomeGradesScreen> {
),
],
),
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<HomeGradesScreen> {
),
),
),
],
),
],
),
FirkaCard(
left: [
Text(