fix every grade tile was italic

This commit is contained in:
ezyyeah 2023-01-23 19:31:07 +01:00
parent 26071db351
commit 7332720302

View File

@ -112,7 +112,7 @@ class GradeTile extends StatelessWidget {
title, title,
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.w600, fontStyle: grade.subject.isRenamed ? FontStyle.italic : null), style: TextStyle(fontWeight: FontWeight.w600, fontStyle: grade.subject.isRenamed && title == subjectName ? FontStyle.italic : null),
), ),
subtitle: subtitle != "" subtitle: subtitle != ""
? censored ? censored