forked from firka/firka
firka: add a section for ghost grades
This commit is contained in:
Submodule firka/lib/l10n updated: 2ac00c3bea...138d4d9764
@@ -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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,17 @@ class _HomeGradesSubjectScreen extends FirkaState<HomeGradesSubjectScreen> {
|
|||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
var gradeWidgets = List<Widget>.empty(growable: true);
|
var gradeWidgets = List<Widget>.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) {
|
for (var group in groups.entries) {
|
||||||
gradeWidgets.add(SizedBox(height: 8));
|
gradeWidgets.add(SizedBox(height: 8));
|
||||||
|
|||||||
Reference in New Issue
Block a user