Skip to content

Commit 8b7fa9b

Browse files
committed
[103] Add TODOs for 103 starter (material-components#56)
1 parent aaf2a2f commit 8b7fa9b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

mdc_100_series/lib/app.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ShrineApp extends StatelessWidget {
2525
home: HomePage(),
2626
initialRoute: '/login',
2727
onGenerateRoute: _getRoute,
28+
// TODO: Add a theme (103)
2829
);
2930
}
3031

@@ -40,3 +41,6 @@ class ShrineApp extends StatelessWidget {
4041
);
4142
}
4243
}
44+
45+
// TODO: Build a Shrine Theme (103)
46+
// TODO: Build a Shrine Text Theme (103)

mdc_100_series/lib/home.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class HomePage extends StatelessWidget {
2929

3030
return products.map((product) {
3131
return Card(
32+
// TODO: Adjust card heights (103)
3233
child: Column(
34+
// TODO: Center items on the card (103)
3335
crossAxisAlignment: CrossAxisAlignment.start,
3436
children: <Widget>[
3537
AspectRatio(
@@ -44,7 +46,9 @@ class HomePage extends StatelessWidget {
4446
child: Padding(
4547
padding: EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 8.0),
4648
child: Column(
49+
// TODO: Align labels to the bottom and center (103)
4750
crossAxisAlignment: CrossAxisAlignment.start,
51+
// TODO: Change innermost Column
4852
children: <Widget>[
4953
// TODO(larche): Make headline6 when available
5054
Text(

mdc_100_series/lib/login.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class _LoginPageState extends State<LoginPage> {
3939
],
4040
),
4141
SizedBox(height: 120.0),
42+
// TODO: Wrap Username with PrimaryColorOverride (103)
43+
// TODO: Remove filled: true values (103)
4244
TextField(
4345
controller: _usernameController,
4446
decoration: InputDecoration(
@@ -47,6 +49,7 @@ class _LoginPageState extends State<LoginPage> {
4749
),
4850
),
4951
SizedBox(height: 12.0),
52+
// TODO: Wrap Password with PrimaryColorOverride (103)
5053
TextField(
5154
controller: _passwordController,
5255
decoration: InputDecoration(
@@ -57,13 +60,16 @@ class _LoginPageState extends State<LoginPage> {
5760
),
5861
ButtonBar(
5962
children: <Widget>[
63+
// TODO: Add a beveled rectangular border to CANCEL (103)
6064
FlatButton(
6165
child: Text('CANCEL'),
6266
onPressed: () {
6367
_usernameController.clear();
6468
_passwordController.clear();
6569
},
6670
),
71+
// TODO: Add an elevation to NEXT (103)
72+
// TODO: Add a beveled rectangular border to NEXT (103)
6773
RaisedButton(
6874
child: Text('NEXT'),
6975
onPressed: () {
@@ -78,3 +84,5 @@ class _LoginPageState extends State<LoginPage> {
7884
);
7985
}
8086
}
87+
88+
// TODO: Add PrimaryColorOverride (103)

0 commit comments

Comments
 (0)