@@ -14,14 +14,30 @@ class Example07 extends StatelessWidget {
1414 mainAxisSpacing: 0.0 ,
1515 crossAxisSpacing: 0.0 ,
1616 children: < Widget > [
17- new _Tile ('https://cdn.pixabay.com/photo/2013/04/07/21/30/croissant-101636_960_720.jpg' ,1 ),
18- new _Tile ('https://cdn.pixabay.com/photo/2016/01/22/16/42/eiffel-tower-1156146_960_720.jpg' ,2 ),
19- new _Tile ('https://cdn.pixabay.com/photo/2016/10/22/20/34/two-types-of-wine-1761613_960_720.jpg' ,3 ),
20- new _Tile ('https://cdn.pixabay.com/photo/2016/10/21/14/50/plouzane-1758197_960_720.jpg' ,4 ),
21- new _Tile ('https://cdn.pixabay.com/photo/2016/11/16/10/59/mountains-1828596_960_720.jpg' ,5 ),
22- new _Tile ('https://cdn.pixabay.com/photo/2013/04/13/18/42/the-eiffel-tower-103417_960_720.jpg' ,6 ),
23- new _Tile ('https://cdn.pixabay.com/photo/2017/08/24/22/37/gyrfalcon-2678684_960_720.jpg' ,7 ),
24- new _Tile ('https://cdn.pixabay.com/photo/2013/01/17/08/25/sunset-75159_960_720.jpg' ,8 ),
17+ new _Tile (
18+ 'https://cdn.pixabay.com/photo/2013/04/07/21/30/croissant-101636_960_720.jpg' ,
19+ 1 ),
20+ new _Tile (
21+ 'https://cdn.pixabay.com/photo/2016/01/22/16/42/eiffel-tower-1156146_960_720.jpg' ,
22+ 2 ),
23+ new _Tile (
24+ 'https://cdn.pixabay.com/photo/2016/10/22/20/34/two-types-of-wine-1761613_960_720.jpg' ,
25+ 3 ),
26+ new _Tile (
27+ 'https://cdn.pixabay.com/photo/2016/10/21/14/50/plouzane-1758197_960_720.jpg' ,
28+ 4 ),
29+ new _Tile (
30+ 'https://cdn.pixabay.com/photo/2016/11/16/10/59/mountains-1828596_960_720.jpg' ,
31+ 5 ),
32+ new _Tile (
33+ 'https://cdn.pixabay.com/photo/2013/04/13/18/42/the-eiffel-tower-103417_960_720.jpg' ,
34+ 6 ),
35+ new _Tile (
36+ 'https://cdn.pixabay.com/photo/2017/08/24/22/37/gyrfalcon-2678684_960_720.jpg' ,
37+ 7 ),
38+ new _Tile (
39+ 'https://cdn.pixabay.com/photo/2013/01/17/08/25/sunset-75159_960_720.jpg' ,
40+ 8 ),
2541 ],
2642 staggeredTiles: const < StaggeredTile > [
2743 const StaggeredTile .fit (2 ),
@@ -54,8 +70,14 @@ class _Tile extends StatelessWidget {
5470 padding: const EdgeInsets .all (4.0 ),
5571 child: new Column (
5672 children: < Widget > [
57- new Text ('Image number $index ' ,style: const TextStyle (fontWeight: FontWeight .bold),),
58- new Text ('Vincent Van Gogh' ,style: const TextStyle (color: Colors .grey),),
73+ new Text (
74+ 'Image number $index ' ,
75+ style: const TextStyle (fontWeight: FontWeight .bold),
76+ ),
77+ new Text (
78+ 'Vincent Van Gogh' ,
79+ style: const TextStyle (color: Colors .grey),
80+ ),
5981 ],
6082 ),
6183 )
@@ -64,4 +86,3 @@ class _Tile extends StatelessWidget {
6486 );
6587 }
6688}
67-
0 commit comments