forked from firka/firka
fix: issue #16
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user