Skip to content

Commit a33e2ac

Browse files
committed
[104] Minor visual changes.
1 parent c7b73fa commit a33e2ac

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

mdc_100_series/lib/app.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ TextTheme _buildShrineTextTheme(TextTheme base) {
112112
fontWeight: FontWeight.w400,
113113
fontSize: 14.0,
114114
),
115+
body2: base.body2.copyWith(
116+
fontWeight: FontWeight.w500,
117+
fontSize: 16.0,
118+
),
115119
).apply(
116120
fontFamily: 'Rubik',
117121
displayColor: kShrineBrown900,

mdc_100_series/lib/menu_page.dart

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,23 @@ class MenuPage extends StatelessWidget {
2626
SizedBox(height: 16.0),
2727
Text(
2828
categoryString,
29-
style: Theme.of(context).textTheme.title,
29+
style: Theme.of(context).textTheme.body2,
3030
textAlign: TextAlign.center,
3131
),
32-
SizedBox(height: 10.0),
32+
SizedBox(height: 14.0),
3333
Container(
3434
width: 70.0,
3535
height: 2.0,
36-
color: Colors.pink[200],
36+
color: Color(0xFFEAA4A4),
3737
),
38-
SizedBox(height: 4.0),
3938
],
4039
)
4140
: Container(
4241
padding: EdgeInsets.symmetric(vertical: 16.0),
4342
child: Text(
4443
categoryString,
45-
style: Theme.of(context).textTheme.title.copyWith(
46-
color: Colors.brown[300],
44+
style: Theme.of(context).textTheme.body2.copyWith(
45+
color: kShrineBrown900.withAlpha(153),
4746
),
4847
textAlign: TextAlign.center,
4948
),
@@ -55,29 +54,12 @@ class MenuPage extends StatelessWidget {
5554
Widget build(BuildContext context) {
5655
var menuItems = <Widget>[];
5756
_categories.forEach((Category c) {
57+
if (c == Category.none) {
58+
return;
59+
}
5860
menuItems.add(_buildCategory(c, context));
5961
});
6062

61-
menuItems.add(Center(
62-
child: Container(
63-
width: 70.0,
64-
height: 1.0,
65-
color: Colors.brown[200],
66-
),
67-
));
68-
menuItems.add(
69-
Container(
70-
padding: EdgeInsets.symmetric(vertical: 16.0),
71-
child: Text(
72-
'MY ACCOUNT',
73-
style: Theme.of(context).textTheme.title.copyWith(
74-
color: Colors.brown[300],
75-
),
76-
textAlign: TextAlign.center,
77-
),
78-
),
79-
);
80-
8163
return Center(
8264
child: Container(
8365
padding: EdgeInsets.only(top: 40.0),

0 commit comments

Comments
 (0)