LiuPan2016

flutter ListView简介

child: new Container(
                              child: new Center(
                                child: ListView(
                                    shrinkWrap:true,
                                  children: <Widget>[
                                    Icon(Icons.close),
                                    new GestureDetector(
......

没有 shrinkWrap:true 的话,ListView的大小是占满整个Container

以上为基本使用

 

分类:

技术点:

相关文章:

  • 2021-06-17
  • 2021-12-01
  • 2021-11-26
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-11
  • 2021-06-14
  • 2021-11-06
相关资源
相似解决方案