From 1a05cce49b2d2842b082289ea591f4c4b43f1075 Mon Sep 17 00:00:00 2001 From: checkedear <271323618+checkedear@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:32:20 +0100 Subject: [PATCH] fix: issue #16 --- firka/lib/ui/phone/pages/home/home_main.dart | 42 +++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/firka/lib/ui/phone/pages/home/home_main.dart b/firka/lib/ui/phone/pages/home/home_main.dart index 5582969..b9774cc 100644 --- a/firka/lib/ui/phone/pages/home/home_main.dart +++ b/firka/lib/ui/phone/pages/home/home_main.dart @@ -321,40 +321,34 @@ class _HomeMainScreen extends FirkaState { noticeBoardWidgets.add(( GestureDetector( child: FirkaCard( - left: [ - Row( - children: [ - GradeWidget(grade), - SizedBox(width: 8), - Column( + left: [], + extra: Row( + children: [ + GradeWidget(grade), + SizedBox(width: 8), + Expanded( + child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - SizedBox( - width: MediaQuery.of(context).size.width / 1.45, - child: Text( - (grade.topic ?? grade.type.description!) - .firstUpper(), - style: appStyle.fonts.B_16SB.apply( - color: appStyle.colors.textPrimary, - ), + Text( + (grade.topic ?? grade.type.description!).firstUpper(), + style: appStyle.fonts.B_16SB.apply( + color: appStyle.colors.textPrimary, ), ), grade.mode?.description != null - ? SizedBox( - width: MediaQuery.of(context).size.width / 1.45, - child: Text( - grade.mode!.description!.firstUpper(), - style: appStyle.fonts.B_16R.apply( - color: appStyle.colors.textSecondary, - ), + ? Text( + grade.mode!.description!.firstUpper(), + style: appStyle.fonts.B_16R.apply( + color: appStyle.colors.textSecondary, ), ) : SizedBox(), ], ), - ], - ), - ], + ), + ], + ), ), onTap: () { showGradeBottomSheet(context, widget.data, grade);