Answers for "gridview bottom overflow flutter"

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
3

gridview flutter

GridView.count(
  // Create a grid with 2 columns. If you change the scrollDirection to
  // horizontal, this produces 2 rows.
  crossAxisCount: 2,
  // Generate 100 widgets that display their index in the List.
  children: List.generate(100, (index) {
    return Center(
      child: Text(
        'Item $index',
        style: Theme.of(context).textTheme.headline5,
      ),
    );
  }),
);
Posted by: Guest on May-23-2020

Browse Popular Code Answers by Language