From 24876aebd64e0173a137efe397e98003e5cfc208 Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Mon, 29 Sep 2025 12:15:00 +0200 Subject: [PATCH] lesson/sheet: add room name --- .../lib/helpers/ui/common_bottom_sheets.dart | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/firka/lib/helpers/ui/common_bottom_sheets.dart b/firka/lib/helpers/ui/common_bottom_sheets.dart index 8d5511fe..ba40fb41 100644 --- a/firka/lib/helpers/ui/common_bottom_sheets.dart +++ b/firka/lib/helpers/ui/common_bottom_sheets.dart @@ -118,11 +118,23 @@ Future showLessonBottomSheet( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - "${lesson.name} ${statsForNerdsEnabled ? "(${lesson.classGroup?.name ?? ''})" : ""}", - style: appStyle.fonts.H_18px - .apply(color: appStyle.colors.textPrimary), - ), + Row(children: [ + Text( + "${lesson.name} ${statsForNerdsEnabled ? "(${lesson.classGroup?.name ?? ''})" : ""}", + style: appStyle.fonts.H_18px + .apply(color: appStyle.colors.textPrimary), + ), + Card( + shadowColor: Colors.transparent, + color: appStyle.colors.a15p, + child: Padding( + padding: EdgeInsets.all(4), + child: Text(lesson.roomName ?? 'N/A', + style: appStyle.fonts.B_12R.apply( + color: appStyle.colors.secondary)), + ), + ), + ]), Text( lesson.teacher ?? 'N/A', style: appStyle.fonts.B_16R