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

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

    Set primary to false in your ListView.

    ListView(
       primary: false,
    ),
    

    That should prevent it from scrolling separately.

提交回复
热议问题