From 3fc14ffbb8ce3d1e71ec31b31a2c779c17660d15 Mon Sep 17 00:00:00 2001 From: Kima Date: Mon, 13 May 2024 19:23:55 +0200 Subject: [PATCH] added room to livecard break --- .../lib/pages/home/live_card/live_card.dart | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart b/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart index 267bcff..1092e9d 100644 --- a/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart +++ b/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart @@ -911,6 +911,37 @@ class LiveCardStateA extends State { Row( 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( width: 10, ),