@@ -14,52 +14,51 @@ class ShopGridItemWidget extends StatelessWidget {
1414 Widget build (BuildContext context) {
1515 return GestureDetector (
1616 onTap: onTap,
17- child: Container (
18- child: Column (
19- mainAxisSize: MainAxisSize .min,
20- children: < Widget > [
21- Container (
22- width: MediaQuery .of (context).size.width,
23- decoration: ShapeDecoration (
24- color: shopItem.bgColor,
25- shape: RoundedRectangleBorder (
26- borderRadius: BorderRadius .all (Radius .circular (16 )),
27- side: BorderSide (color: wood_smoke, width: 2 ))),
28- child: SvgPicture .asset (
29- shopItem.image,
30- width: 155 ,
31- height: 170 ,
32- ),
17+ child: Column (
18+ mainAxisSize: MainAxisSize .min,
19+ children: < Widget > [
20+ Container (
21+ width: MediaQuery .of (context).size.width,
22+ decoration: ShapeDecoration (
23+ color: shopItem.bgColor,
24+ shape: RoundedRectangleBorder (
25+ borderRadius: BorderRadius .all (Radius .circular (16 )),
26+ side: BorderSide (color: wood_smoke, width: 2 ))),
27+ child: SvgPicture .asset (
28+ shopItem.image,
29+ width: 155 ,
30+ height: 170 ,
3331 ),
34- SizedBox (
35- height: 2 ,
32+ ),
33+ SizedBox (
34+ height: 2 ,
35+ ),
36+ Container (
37+ alignment: Alignment .centerLeft,
38+ child: Text (
39+ shopItem.name,
40+ maxLines: 2 ,
41+ textAlign: TextAlign .start,
42+ overflow: TextOverflow .ellipsis,
43+ style: TextStyle (
44+ color: wood_smoke, fontSize: 17 , fontWeight: FontWeight .bold),
3645 ),
37- Container (
38- alignment: Alignment .centerLeft,
39- child: Text (
40- shopItem.name,
41- maxLines: 2 ,
42- textAlign: TextAlign .start,
43- style: TextStyle (
44- color: wood_smoke,
45- fontSize: 17 ,
46- fontWeight: FontWeight .bold),
47- ),
46+ ),
47+ SizedBox (
48+ height: 2 ,
49+ ),
50+ Container (
51+ alignment: Alignment .centerLeft,
52+ child: Text (
53+ "\$ " + shopItem.price,
54+ textAlign: TextAlign .start,
55+ overflow: TextOverflow .ellipsis,
56+ maxLines: 1 ,
57+ style: TextStyle (
58+ color: trout, fontSize: 18 , fontWeight: FontWeight .w800),
4859 ),
49- SizedBox (
50- height: 2 ,
51- ),
52- Container (
53- alignment: Alignment .centerLeft,
54- child: Text (
55- "\$ " + shopItem.price,
56- textAlign: TextAlign .start,
57- style: TextStyle (
58- color: trout, fontSize: 18 , fontWeight: FontWeight .w800),
59- ),
60- ),
61- ],
62- ),
60+ ),
61+ ],
6362 ),
6463 );
6564 }
0 commit comments