From 6a058f51667f7cb0d9913f68d32de69d93f8e89e Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Wed, 16 Sep 2026 22:28:55 +0200 Subject: [PATCH] fix(bottom_sheet): make text expanded to avoid overflow --- firka/lib/ui/components/common_bottom_sheets.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/firka/lib/ui/components/common_bottom_sheets.dart b/firka/lib/ui/components/common_bottom_sheets.dart index ca0d8f3f..f5de1c5a 100644 --- a/firka/lib/ui/components/common_bottom_sheets.dart +++ b/firka/lib/ui/components/common_bottom_sheets.dart @@ -167,10 +167,13 @@ Future showLessonBottomSheet( SizedBox(height: 20), Row( children: [ - Text( - "${lesson.name} ${statsForNerdsEnabled ? "(${lesson.subject.loadAndGet()!.name})" : ""}", - style: appStyle.fonts.H_18px.apply( - color: appStyle.colors.textPrimary, + Expanded( + child: Text( + "${lesson.name} ${statsForNerdsEnabled ? "(${lesson.subject.loadAndGet()!.name})" : ""}", + style: appStyle.fonts.H_18px.apply( + color: appStyle.colors.textPrimary, + ), + softWrap: true, ), ), ],