forked from firka/firka
fix: issue #16
This commit is contained in:
@@ -321,41 +321,35 @@ class _HomeMainScreen extends FirkaState<HomeMainScreen> {
|
||||
noticeBoardWidgets.add((
|
||||
GestureDetector(
|
||||
child: FirkaCard(
|
||||
left: [
|
||||
Row(
|
||||
left: [],
|
||||
extra: Row(
|
||||
children: [
|
||||
GradeWidget(grade),
|
||||
SizedBox(width: 8),
|
||||
Column(
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: MediaQuery.of(context).size.width / 1.45,
|
||||
child: Text(
|
||||
(grade.topic ?? grade.type.description!)
|
||||
.firstUpper(),
|
||||
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(
|
||||
? Text(
|
||||
grade.mode!.description!.firstUpper(),
|
||||
style: appStyle.fonts.B_16R.apply(
|
||||
color: appStyle.colors.textSecondary,
|
||||
),
|
||||
),
|
||||
)
|
||||
: SizedBox(),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
showGradeBottomSheet(context, widget.data, grade);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user