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

后端 未结 6 908
我在风中等你
我在风中等你 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:36

    For me, setting primary to false and shrinkWrap to true worked.

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

提交回复
热议问题