Member-only story

ListView.builder And GridView.builder Inside ListView In Flutter

Lakshydeep Vikram
2 min readJun 17, 2021

No matter what’s the parent widget, either it’s a Singlechildscrollview or Listview, when you add Listview.builder() or Gridview.builder() to it, you got blank white screen throwing error in the console. So the solution for that is here .
NOTE: You can use either SingleChildScrollView() or ListView().

For ListView.builder

Paste the code below inside the parent widget or add line 17 and 18 to your ListView.builder()

physics: NeverScrollableScrollPhysics(),

shrinkWrap: true,

You got that while blank screen cause you hadn’t added line no. 17 & 18.

For GridView.builder()

Paste the code below inside the parent widget or add same line as above to your GridView.builder()

physics: NeverScrollableScrollPhysics(),

shrinkWrap: true,

Here, you had learnt how to use Gridview.builder() and Listview.builder() inside ListView and SinglechildscrollView and you’d also learnt how to use gridDelegate in GridView.builder().

You can connect me LinkedIN and do follow.
Buy the book “Make Yourself The Software Developer: Let’s Dive into Flutter & MNCsbuy.
Kindly give feedback.
Keep learning and coding.
Thanks!!!

--

--

Lakshydeep Vikram
Lakshydeep Vikram

Written by Lakshydeep Vikram

Software Developer | Google Dev Library Author | Flutter Enthusiast

No responses yet