forked from firka/firka
fix: text grades title
This commit is contained in:
@@ -120,10 +120,14 @@ class InfoCard extends StatelessWidget {
|
|||||||
Grade grade, {
|
Grade grade, {
|
||||||
void Function(BuildContext)? onTap,
|
void Function(BuildContext)? onTap,
|
||||||
}) {
|
}) {
|
||||||
|
String? value = grade.numericValue == null ? grade.strValue : null;
|
||||||
return InfoCard(
|
return InfoCard(
|
||||||
icon: GradeWidget(grade),
|
icon: GradeWidget(grade),
|
||||||
texts: [
|
texts: [
|
||||||
(grade.topic ?? grade.mode?.description ?? grade.type.description!)
|
(grade.topic ??
|
||||||
|
value ??
|
||||||
|
grade.mode?.description ??
|
||||||
|
grade.type.description!)
|
||||||
.firstUpper(),
|
.firstUpper(),
|
||||||
grade.subject.name.firstUpper(),
|
grade.subject.name.firstUpper(),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user