Advertisement
iqbalme

gridview card

May 23rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.14 KB | None | 0 0
  1. new GridView.count(
  2.                     crossAxisCount: 2,
  3.                     children: <Widget>[
  4.                       new Card(
  5.                         child: new Center(
  6.                           child: new Column(
  7.                             mainAxisSize: MainAxisSize.min,
  8.                             children: <Widget>[
  9.                              new Image.asset("images/laptop.jpg", fit: BoxFit.cover),
  10.                               new Expanded(
  11.                                 child: new Text("Laptop Asus ROG 2018 NVidia", style: new TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0)),
  12.                               ),
  13.                               new Padding(
  14.                                 padding: new EdgeInsets.symmetric(vertical: 5.0),
  15.                               ),
  16.                               new Text("Rp. 45.000", textAlign: TextAlign.start, style: new TextStyle(color: Colors.red, fontSize: 20.0, fontWeight: FontWeight.bold),)                              
  17.                             ],
  18.                           ),
  19.                         )
  20.                       ),
  21.                     ]
  22.                   )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement