1
0
forked from firka/firka

fix: issue #16

This commit is contained in:
checkedear
2026-03-27 19:32:20 +01:00
parent 68035140b9
commit 1a05cce49b

View File

@@ -321,40 +321,34 @@ class _HomeMainScreen extends FirkaState<HomeMainScreen> {
noticeBoardWidgets.add(( noticeBoardWidgets.add((
GestureDetector( GestureDetector(
child: FirkaCard( child: FirkaCard(
left: [ left: [],
Row( extra: Row(
children: [ children: [
GradeWidget(grade), GradeWidget(grade),
SizedBox(width: 8), SizedBox(width: 8),
Column( Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox( Text(
width: MediaQuery.of(context).size.width / 1.45, (grade.topic ?? grade.type.description!).firstUpper(),
child: Text( style: appStyle.fonts.B_16SB.apply(
(grade.topic ?? grade.type.description!) color: appStyle.colors.textPrimary,
.firstUpper(),
style: appStyle.fonts.B_16SB.apply(
color: appStyle.colors.textPrimary,
),
), ),
), ),
grade.mode?.description != null grade.mode?.description != null
? SizedBox( ? Text(
width: MediaQuery.of(context).size.width / 1.45, grade.mode!.description!.firstUpper(),
child: Text( style: appStyle.fonts.B_16R.apply(
grade.mode!.description!.firstUpper(), color: appStyle.colors.textSecondary,
style: appStyle.fonts.B_16R.apply(
color: appStyle.colors.textSecondary,
),
), ),
) )
: SizedBox(), : SizedBox(),
], ],
), ),
], ),
), ],
], ),
), ),
onTap: () { onTap: () {
showGradeBottomSheet(context, widget.data, grade); showGradeBottomSheet(context, widget.data, grade);