listview或gridview中添加
shrinkWrap: true, //解决 listview 嵌套报错
physics: NeverScrollableScrollPhysics(), //禁用滑动事件
example
return ListView.builder(
shrinkWrap: true, //解决 listview 嵌套报错
physics: NeverScrollableScrollPhysics(), //禁用滑动事件
itemCount: this.mainContactList.length,
itemBuilder: (BuildContext context, int index) {
return _contactWidgetDetail(context, index);
},
);