Skip to content

Commit 246a017

Browse files
committed
Better shadows, better no items cart page, and 19.5:9 (iphone x) screenshots
1 parent fc47f61 commit 246a017

File tree

8 files changed

+27
-12
lines changed

8 files changed

+27
-12
lines changed

lib/pages/cart_page/cart_item.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ class CartItem extends StatelessWidget
1414
margin: new EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
1515
child: new Material
1616
(
17-
elevation: 8.0,
17+
elevation: 30.0,
18+
shadowColor: Colors.black54,
1819
color: Colors.white,
19-
borderRadius: new BorderRadius.circular(12.0),
20+
borderRadius: new BorderRadius.circular(6.0),
2021
child: new Padding
2122
(
2223
padding: new EdgeInsets.symmetric(vertical: 6.0),

lib/pages/cart_page/cart_page.dart

+23-9
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _CartPageState extends State<CartPage>
5555
child: new Padding
5656
(
5757
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)),
5959
),
6060
),
6161
),
@@ -96,20 +96,34 @@ class _CartPageState extends State<CartPage>
9696
crossAxisAlignment: CrossAxisAlignment.center,
9797
children: <Widget>
9898
[
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),
105100
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)),
107102
new Padding(padding: new EdgeInsets.only(bottom: 8.0)),
108103
new Container
109104
(
110105
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)),
112107
),
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+
)
113127
],
114128
),
115129
)

lib/pages/zoomable_image_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ZoomableImagePage extends StatelessWidget
2424
child: new Hero
2525
(
2626
tag: imgPath,
27-
child: new ZoomableImage(new AssetImage(imgPath), scale: 1.5),
27+
child: new ZoomableImage(new AssetImage(imgPath), scale: 3.0),
2828
),
2929
),
3030
new Align

media/screenshots/flutter_01.png

-154 KB
Loading

media/screenshots/flutter_02.png

2.83 KB
Loading

media/screenshots/flutter_03.png

121 KB
Loading

media/screenshots/flutter_04.png

27.8 KB
Loading

media/screenshots/flutter_05.png

13.6 KB
Loading

0 commit comments

Comments
 (0)