how to place a listview inside a SingleChildScrollView but prevent them from scrolling separately?

后端 未结 6 907
我在风中等你
我在风中等你 2020-12-15 17:10

I have a widget tree like this:

SingleChildScrollView
   Column
     Container
       ListView(or GridView)

the problem is that when my wid

6条回答
  •  一生所求
    2020-12-15 17:49

    I am using nested Listviews and this helped me. Add these lines in all of your ListviewBuilders

    ListView(
       shrinkWrap: true,
       primary: false,
    ),
    

提交回复
热议问题