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-11-26
  • 2021-10-18
  • 2021-03-31
  • 2021-09-23
  • 2021-04-08
  • 2021-12-02
  • 2021-06-29
  • 2021-04-29
猜你喜欢
  • 2021-06-17
  • 2021-06-16
  • 2021-12-11
  • 2021-11-15
相关资源
相似解决方案