fixed little issues with lesson popups

This commit is contained in:
Kima
2024-05-21 19:46:47 +02:00
parent a319b26d82
commit 416f42f42d
2 changed files with 15 additions and 9 deletions

View File

@@ -481,13 +481,15 @@ class TimetableLessonPopup extends StatelessWidget {
height: 8.0,
),
Text(
(lesson.teacher.isRenamed &&
Provider.of<SettingsProvider>(context,
listen: false)
.renamedTeachersEnabled)
? (lesson.teacher.renamedTo ??
lesson.teacher.name)
: lesson.teacher.name,
((lesson.substituteTeacher == null ||
lesson.substituteTeacher!.name == "")
? (lesson.teacher.isRenamed
? lesson.teacher.renamedTo
: lesson.teacher.name)
: (lesson.substituteTeacher!.isRenamed
? lesson.substituteTeacher!.renamedTo
: lesson.substituteTeacher!.name)) ??
'',
style: TextStyle(
color: AppColors.of(context).text.withOpacity(0.9),
fontSize: 14.0,