diff --git a/firka/lib/ui/components/common_bottom_sheets.dart b/firka/lib/ui/components/common_bottom_sheets.dart index b2841b12..1a1c0695 100644 --- a/firka/lib/ui/components/common_bottom_sheets.dart +++ b/firka/lib/ui/components/common_bottom_sheets.dart @@ -137,6 +137,27 @@ Future showLessonBottomSheet( size: 26, ), ), + SizedBox(width: 6), + if (lesson.roomName != null) + Card( + shadowColor: Colors.transparent, + color: appStyle.colors.a15p, + margin: EdgeInsets.all(0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10), + ), + child: Padding( + padding: EdgeInsets.symmetric(horizontal: 6), + child: Text( + lesson.roomName!, + style: appStyle.fonts.B_14R.apply( + color: appStyle.colors.secondary, + ), + overflow: TextOverflow.ellipsis, + textAlign: TextAlign.center, + ), + ), + ), ], ), SizedBox(height: 20), @@ -165,7 +186,6 @@ Future showLessonBottomSheet( lesson.substituteTeacher!, style: appStyle.fonts.B_14R.apply(color: appStyle.colors.textSecondary), ), - SizedBox(height: 8), Text( '${lesson.start.format(data.l10n, FormatMode.hmm)} - ${lesson.end.format(data.l10n, FormatMode.hmm)}', style: appStyle.fonts.B_14R.apply(color: appStyle.colors.textSecondary),