getItemViewGrid method
Implementation
Widget getItemViewGrid(ShopCategory s){
return Expanded(
flex: 1,
child: Card(
shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(4),),
color: Colors.white,
elevation: 2,
clipBehavior: Clip.antiAliasWithSaveLayer,
child: Container(
height: 120,
alignment: Alignment.center,
padding: EdgeInsets.fromLTRB(10, 10, 10, 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
child: Icon(s.icon, size: 40, color: Colors.grey[600]),
),
Text(s.title, textAlign : TextAlign.center,
style: MyText.subhead(context)!.copyWith(
color: Colors.grey[800]
)
),
],
),
),
),
);
}