fixed text overflow and teacher custom name
This commit is contained in:
parent
d915200faa
commit
c9db496e59
@ -210,14 +210,20 @@ class ExamPopup extends StatelessWidget {
|
|||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
SizedBox(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.7,
|
||||||
|
child: Text(
|
||||||
exam.description.capital(),
|
exam.description.capital(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: AppColors.of(context)
|
||||||
AppColors.of(context).text.withOpacity(0.9),
|
.text
|
||||||
|
.withOpacity(0.9),
|
||||||
fontSize: 16.0,
|
fontSize: 16.0,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
|
maxLines: 3,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
(exam.mode?.description ?? 'Ismeretlen')
|
(exam.mode?.description ?? 'Ismeretlen')
|
||||||
|
@ -466,7 +466,13 @@ class TimetableLessonPopup extends StatelessWidget {
|
|||||||
height: 8.0,
|
height: 8.0,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
lesson.teacher.name,
|
(lesson.teacher.isRenamed &&
|
||||||
|
Provider.of<SettingsProvider>(context,
|
||||||
|
listen: false)
|
||||||
|
.renamedTeachersEnabled)
|
||||||
|
? (lesson.teacher.renamedTo ??
|
||||||
|
lesson.teacher.name)
|
||||||
|
: lesson.teacher.name,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: AppColors.of(context).text.withOpacity(0.9),
|
color: AppColors.of(context).text.withOpacity(0.9),
|
||||||
fontSize: 14.0,
|
fontSize: 14.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user