1
0
forked from firka/firka

firka: add a section for ghost grades

This commit is contained in:
2026-03-03 17:23:03 +01:00
parent 32936c2aa5
commit ba075c3b14
3 changed files with 12 additions and 11 deletions

View File

@@ -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,
),
),
],
],
);
}

View File

@@ -131,7 +131,17 @@ class _HomeGradesSubjectScreen extends FirkaState<HomeGradesSubjectScreen> {
}).toList();
var gradeWidgets = List<Widget>.empty(growable: true);
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));