Gridview


How to write gridview in flutter?

GridView.builder(

itemCount: lenth of items,

gridDelegate:

SliverGridDelegateWithFixedCrossAxisCount(

crossAxisCount: 2,

crossAxisSpacing: 4,

mainAxisSpacing: 10,

childAspectRatio: 0.700),

padding: EdgeInsets.all(6),

// physics: NeverScrollableScrollPhysics(),

shrinkWrap: true,

itemBuilder: (context, index) {

return Container();

Sign In or Register to comment.