added room to lesson popup
This commit is contained in:
parent
0a1c5bbfd2
commit
0cc3aa07ad
@ -398,13 +398,47 @@ class TimetableLessonPopup extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Row(
|
||||||
'${DateFormat('H:mm').format(lesson.start)} - ${DateFormat('H:mm').format(lesson.end)}',
|
children: [
|
||||||
style: TextStyle(
|
Text(
|
||||||
color: AppColors.of(context).text.withOpacity(0.85),
|
'${DateFormat('H:mm').format(lesson.start)} - ${DateFormat('H:mm').format(lesson.end)}',
|
||||||
fontSize: 14.0,
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
color: AppColors.of(context)
|
||||||
),
|
.text
|
||||||
|
.withOpacity(0.85),
|
||||||
|
fontSize: 14.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
width: 8.0,
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
width: lesson.room.length > 20 ? 111 : null,
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 5.5, vertical: 3.0),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.tertiary
|
||||||
|
.withOpacity(.15),
|
||||||
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
lesson.room,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: TextStyle(
|
||||||
|
height: 1.1,
|
||||||
|
fontSize: 12.0,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.secondary
|
||||||
|
.withOpacity(.9),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 12.0,
|
height: 12.0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user