Answers for "gridview cells circular flutter"

8

GridView in flutter

GridView.builder(
              physics: NeverScrollableScrollPhysics(),
              shrinkWrap: true,
              gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                crossAxisCount: 5,
                crossAxisSpacing: 5.0,
                mainAxisSpacing: 5.0,
              ),
              itemCount: 10,
              itemBuilder: (context, index) {
                return Container(
                  color: Colors.blue,
                  child: Text("index: $index"),
                );
              },
            )
Posted by: Guest on August-01-2021
2

gridview not scrolling flutter

Add this line inside your GridView to allow scrolling
physics: ScrollPhysics(),

Add this line inside your GridView to disable scrolling

physics: NeverScrollableScrollPhysics(),
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language