added room to livecard break

This commit is contained in:
Kima 2024-05-13 19:23:55 +02:00
parent 75ba5405bb
commit 3fc14ffbb8

View File

@ -911,6 +911,37 @@ class LiveCardStateA extends State<LiveCard> {
Row( Row(
children: liveCard.nextLesson != null children: liveCard.nextLesson != null
? [ ? [
Container(
width: (liveCard.nextLesson?.room
.length ??
0) >
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(
liveCard.nextLesson!.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(
width: 10, width: 10,
), ),