forked from firka/firka
fix: text grades title
This commit is contained in:
@@ -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(),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user