1
0
forked from firka/firka

fix: text grades title

This commit is contained in:
checkedear
2026-04-15 21:46:50 +02:00
parent 6311cafd51
commit 6c75acad66

View File

@@ -120,10 +120,14 @@ class InfoCard extends StatelessWidget {
Grade grade, {
void Function(BuildContext)? onTap,
}) {
String? value = grade.numericValue == null ? grade.strValue : null;
return InfoCard(
icon: GradeWidget(grade),
texts: [
(grade.topic ?? grade.mode?.description ?? grade.type.description!)
(grade.topic ??
value ??
grade.mode?.description ??
grade.type.description!)
.firstUpper(),
grade.subject.name.firstUpper(),
],