Skip to content

Commit 8e47259

Browse files
authored
[101] Added future TODOs to 101 starter (#59)
1 parent 172d047 commit 8e47259

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

mdc_100_series/lib/app.dart

+11
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ import 'package:flutter/material.dart';
1717
import 'home.dart';
1818
import 'login.dart';
1919

20+
// TODO: Convert ShrineApp to stateful widget (104)
2021
class ShrineApp extends StatelessWidget {
22+
// TODO: Add variable for selected Category (104)
23+
// TODO: Add a callback when Category is tapped (104)
2124
@override
2225
Widget build(BuildContext context) {
2326
return MaterialApp(
2427
title: 'Shrine',
28+
// TODO: Change home: to a Backdrop with a HomePage frontLayer (104)
2529
home: HomePage(),
30+
// TODO: Make currentCategory field take _currentCategory (104)
31+
// TODO: Pass _currentCategory for frontLayer (104)
32+
// TODO: Change backLayer field value to CategoryMenuPage (104)
2633
initialRoute: '/login',
2734
onGenerateRoute: _getRoute,
35+
// TODO: Add a theme (103)
2836
);
2937
}
3038

@@ -40,3 +48,6 @@ class ShrineApp extends StatelessWidget {
4048
);
4149
}
4250
}
51+
52+
// TODO: Build a Shrine Theme (103)
53+
// TODO: Build a Shrine Text Theme (103)

mdc_100_series/lib/home.dart

+6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
import 'package:flutter/material.dart';
1616

1717
class HomePage extends StatelessWidget {
18+
// TODO: Make a collection of cards (102)
19+
// TODO: Add a variable for Category (104)
1820
@override
1921
Widget build(BuildContext context) {
22+
// TODO: Return an AsymmetricView (104)
23+
// TODO: Pass Category variable to AsymmetricView (104)
2024
return Scaffold(
25+
// TODO: Add app bar (102)
26+
// TODO: Add a grid view (102)
2127
body: Center(
2228
child: Text('You did it!'),
2329
),

mdc_100_series/lib/login.dart

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class _LoginPageState extends State<LoginPage> {
3737
],
3838
),
3939
const SizedBox(height: 120.0),
40+
// TODO: Wrap Username with PrimaryColorOverride (103)
41+
// TODO: Remove filled: true values (103)
42+
// TODO: Wrap Password with PrimaryColorOverride (103)
4043
// TODO: Add TextField widgets (101)
4144
// TODO: Add button bar (101)
4245
],
@@ -45,3 +48,5 @@ class _LoginPageState extends State<LoginPage> {
4548
);
4649
}
4750
}
51+
52+
// TODO: Add PrimaryColorOverride (103)

mdc_100_series/lib/supplemental/product_columns.dart

+3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ class TwoProductCardColumn extends StatelessWidget {
3333

3434
double heightOfCards = (constraints.biggest.height - spacerHeight) / 2.0;
3535
double heightOfImages = heightOfCards - ProductCard.kTextBoxHeight;
36+
// TODO: Change imageAspectRatio calculation (104)
3637
double imageAspectRatio = constraints.biggest.width / heightOfImages;
3738

39+
// TODO: Replace Column with a ListView (104)
3840
return Column(
3941
mainAxisAlignment: MainAxisAlignment.center,
4042
crossAxisAlignment: CrossAxisAlignment.center,
@@ -71,6 +73,7 @@ class OneProductCardColumn extends StatelessWidget {
7173

7274
@override
7375
Widget build(BuildContext context) {
76+
// TODO: Replace Column with a ListView (104)
7477
return Column(
7578
mainAxisAlignment: MainAxisAlignment.end,
7679
children: <Widget>[

0 commit comments

Comments
 (0)