File tree 4 files changed +25
-0
lines changed
4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,22 @@ import 'package:flutter/material.dart';
17
17
import 'home.dart' ;
18
18
import 'login.dart' ;
19
19
20
+ // TODO: Convert ShrineApp to stateful widget (104)
20
21
class ShrineApp extends StatelessWidget {
22
+ // TODO: Add variable for selected Category (104)
23
+ // TODO: Add a callback when Category is tapped (104)
21
24
@override
22
25
Widget build (BuildContext context) {
23
26
return MaterialApp (
24
27
title: 'Shrine' ,
28
+ // TODO: Change home: to a Backdrop with a HomePage frontLayer (104)
25
29
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)
26
33
initialRoute: '/login' ,
27
34
onGenerateRoute: _getRoute,
35
+ // TODO: Add a theme (103)
28
36
);
29
37
}
30
38
@@ -40,3 +48,6 @@ class ShrineApp extends StatelessWidget {
40
48
);
41
49
}
42
50
}
51
+
52
+ // TODO: Build a Shrine Theme (103)
53
+ // TODO: Build a Shrine Text Theme (103)
Original file line number Diff line number Diff line change 15
15
import 'package:flutter/material.dart' ;
16
16
17
17
class HomePage extends StatelessWidget {
18
+ // TODO: Make a collection of cards (102)
19
+ // TODO: Add a variable for Category (104)
18
20
@override
19
21
Widget build (BuildContext context) {
22
+ // TODO: Return an AsymmetricView (104)
23
+ // TODO: Pass Category variable to AsymmetricView (104)
20
24
return Scaffold (
25
+ // TODO: Add app bar (102)
26
+ // TODO: Add a grid view (102)
21
27
body: Center (
22
28
child: Text ('You did it!' ),
23
29
),
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ class _LoginPageState extends State<LoginPage> {
37
37
],
38
38
),
39
39
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)
40
43
// TODO: Add TextField widgets (101)
41
44
// TODO: Add button bar (101)
42
45
],
@@ -45,3 +48,5 @@ class _LoginPageState extends State<LoginPage> {
45
48
);
46
49
}
47
50
}
51
+
52
+ // TODO: Add PrimaryColorOverride (103)
Original file line number Diff line number Diff line change @@ -33,8 +33,10 @@ class TwoProductCardColumn extends StatelessWidget {
33
33
34
34
double heightOfCards = (constraints.biggest.height - spacerHeight) / 2.0 ;
35
35
double heightOfImages = heightOfCards - ProductCard .kTextBoxHeight;
36
+ // TODO: Change imageAspectRatio calculation (104)
36
37
double imageAspectRatio = constraints.biggest.width / heightOfImages;
37
38
39
+ // TODO: Replace Column with a ListView (104)
38
40
return Column (
39
41
mainAxisAlignment: MainAxisAlignment .center,
40
42
crossAxisAlignment: CrossAxisAlignment .center,
@@ -71,6 +73,7 @@ class OneProductCardColumn extends StatelessWidget {
71
73
72
74
@override
73
75
Widget build (BuildContext context) {
76
+ // TODO: Replace Column with a ListView (104)
74
77
return Column (
75
78
mainAxisAlignment: MainAxisAlignment .end,
76
79
children: < Widget > [
You can’t perform that action at this time.
0 commit comments