@@ -55,7 +55,7 @@ class _CartPageState extends State<CartPage>
55
55
child: new Padding
56
56
(
57
57
padding: const EdgeInsets .all (24.0 ),
58
- child: new Text ('Buy Now \$ ${calculateFinalPrice ().toStringAsFixed (2 )}' , style: new TextStyle (color: Colors .white, fontSize: 20.0 , fontWeight: FontWeight .w600)),
58
+ child: new Text ('Buy Now ( \$ ${calculateFinalPrice ().toStringAsFixed (2 )}) ' , style: new TextStyle (color: Colors .white, fontSize: 20.0 , fontWeight: FontWeight .w600)),
59
59
),
60
60
),
61
61
),
@@ -96,20 +96,34 @@ class _CartPageState extends State<CartPage>
96
96
crossAxisAlignment: CrossAxisAlignment .center,
97
97
children: < Widget >
98
98
[
99
- new CircleAvatar
100
- (
101
- radius: 64.0 ,
102
- backgroundColor: Colors .black26,
103
- child: new Icon (Icons .remove_shopping_cart, color: Colors .white, size: 64.0 ),
104
- ),
99
+ new Icon (Icons .remove_shopping_cart, color: Colors .black26, size: 96.0 ),
105
100
new Padding (padding: new EdgeInsets .only (bottom: 48.0 )),
106
- new Text ('Your cart is empty' , style: new TextStyle (color: Colors .black, fontWeight: FontWeight .w700, fontSize: 22 .0 )),
101
+ new Text ('Your cart is empty! ' , style: new TextStyle (color: Colors .black, fontWeight: FontWeight .w700, fontSize: 28 .0 )),
107
102
new Padding (padding: new EdgeInsets .only (bottom: 8.0 )),
108
103
new Container
109
104
(
110
105
margin: new EdgeInsets .symmetric (horizontal: 64.0 ),
111
- child: new Text ('Looks like you haven\' t added any plants to your cart yet.' , textAlign: TextAlign .center, style: new TextStyle ()),
106
+ child: new Text ('Looks like you haven\' t added any plants to your cart yet.' , textAlign: TextAlign .center, style: new TextStyle (fontSize : 20.0 )),
112
107
),
108
+ new Padding (padding: new EdgeInsets .only (bottom: 96.0 )),
109
+ new Container
110
+ (
111
+ child: new Material
112
+ (
113
+ elevation: 16.0 ,
114
+ shadowColor: new Color (0x7000E676 ),
115
+ color: Colors .white,
116
+ child: new InkWell
117
+ (
118
+ onTap: () => Navigator .of (context).pop (),
119
+ child: new Padding
120
+ (
121
+ padding: const EdgeInsets .symmetric (horizontal: 64.0 , vertical: 16.0 ),
122
+ child: new Text ('Go back' , style: new TextStyle (color: Colors .green, fontWeight: FontWeight .w700)),
123
+ ),
124
+ ),
125
+ ),
126
+ )
113
127
],
114
128
),
115
129
)
0 commit comments