Flutter|Flutter 填坑之Scrollview嵌套Listview

A listview嵌套B listview,这里面有两个问题:

  1. B listview不显示
  2. A listview滑动监听被B listview窃取
解决问题1:要在B listview里面添加属性 shrinkWrap: true 即可
【Flutter|Flutter 填坑之Scrollview嵌套Listview】解决问题2:在B listview里面添加属性 physics: NeverScrollableScrollPhysics() 即可
BListView.builder( physics: NeverScrollableScrollPhysics(), shrinkWrap: true, itemCount: 3, itemBuilder: _getListViewItem, );


    推荐阅读