From 0bfd7e9da567e83a6f1c4dd376b9b2061e3a363f Mon Sep 17 00:00:00 2001 From: TL Date: Tue, 26 Jun 2018 13:44:23 -0400 Subject: [PATCH] [103] Add TODOs for 103 starter [103] Added spaces at the start of TODOs [103] Remove the word "button" --- mdc_100_series/lib/app.dart | 4 ++++ mdc_100_series/lib/home.dart | 4 ++++ mdc_100_series/lib/login.dart | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/mdc_100_series/lib/app.dart b/mdc_100_series/lib/app.dart index 08abe62fec..8abc46af0b 100644 --- a/mdc_100_series/lib/app.dart +++ b/mdc_100_series/lib/app.dart @@ -25,6 +25,7 @@ class ShrineApp extends StatelessWidget { home: HomePage(), initialRoute: '/login', onGenerateRoute: _getRoute, + // TODO: Add a theme (103) ); } @@ -40,3 +41,6 @@ class ShrineApp extends StatelessWidget { ); } } + +// TODO: Build a Shrine Theme (103) +// TODO: Build a Shrine Text Theme (103) diff --git a/mdc_100_series/lib/home.dart b/mdc_100_series/lib/home.dart index 94412aad2e..65c3d2017a 100644 --- a/mdc_100_series/lib/home.dart +++ b/mdc_100_series/lib/home.dart @@ -33,7 +33,9 @@ class HomePage extends StatelessWidget { return products.map((product) { return Card( + // TODO: Adjust card heights (103) child: Column( + // TODO: Center items on the card (103) crossAxisAlignment: CrossAxisAlignment.start, children: [ AspectRatio( @@ -48,7 +50,9 @@ class HomePage extends StatelessWidget { child: Padding( padding: EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 8.0), child: Column( + // TODO: Align labels to the bottom and center (103) crossAxisAlignment: CrossAxisAlignment.start, + // TODO: Change innermost Column children: [ // TODO(larche): Make headline6 when available Text( diff --git a/mdc_100_series/lib/login.dart b/mdc_100_series/lib/login.dart index 0c7c73a74a..5eae5bf8e0 100644 --- a/mdc_100_series/lib/login.dart +++ b/mdc_100_series/lib/login.dart @@ -39,6 +39,8 @@ class _LoginPageState extends State { ], ), SizedBox(height: 120.0), + // TODO: Wrap Username with PrimaryColorOverride (103) + // TODO: Remove filled: true values (103) TextField( controller: _usernameController, decoration: InputDecoration( @@ -47,6 +49,7 @@ class _LoginPageState extends State { ), ), SizedBox(height: 12.0), + // TODO: Wrap Password with PrimaryColorOverride (103) TextField( controller: _passwordController, decoration: InputDecoration( @@ -57,6 +60,7 @@ class _LoginPageState extends State { ), ButtonBar( children: [ + // TODO: Add a beveled rectangular border to CANCEL (103) FlatButton( child: Text('CANCEL'), onPressed: () { @@ -64,6 +68,8 @@ class _LoginPageState extends State { _passwordController.clear(); }, ), + // TODO: Add an elevation to NEXT (103) + // TODO: Add a beveled rectangular border to NEXT (103) RaisedButton( child: Text('NEXT'), onPressed: () { @@ -78,3 +84,5 @@ class _LoginPageState extends State { ); } } + +// TODO: Add PrimaryColorOverride (103)