fixed exam subject rename thing

This commit is contained in:
Kima
2023-10-12 21:06:53 +02:00
parent a4207b8348
commit 1cc885e4b7
4 changed files with 63 additions and 16 deletions

View File

@@ -29,13 +29,15 @@ class ExamView extends StatelessWidget {
padding: const EdgeInsets.only(left: 6.0),
child: Icon(
SubjectIcon.resolveVariant(
subjectName: exam.subjectName, context: context),
subjectName: exam.subject.name, context: context),
size: 36.0,
color: AppColors.of(context).text.withOpacity(.75),
),
),
title: Text(
exam.subjectName.capital(),
exam.subject.isRenamed
? exam.subject.renamedTo!
: exam.subject.name.capital(),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontWeight: FontWeight.w600),