cap-rq

 

ListView(
      children: <Widget>[
          ListView(
                shrinkWrap: true, //为true可以解决子控件必须设置高度的问题
                physics:NeverScrollableScrollPhysics(),//禁用滑动事件
          ),
    ],
)

 

如果需要两个listview同时滑动,则需要向他们传同一个scrollcontroller

  ScrollController _scrollController;
  ListView(
    controller:_scrollController,
      children: <Widget>[
          ListView(
                controller:_scrollController,
          ),
    ],
   )

 

 

参考链接:https://www.jianshu.com/p/4f7fff2ed440

 

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2022-01-18
  • 2021-12-05
  • 2022-01-09
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2021-11-15
  • 2021-12-05
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案