flutter ListView简介

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

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

以上为基本使用

 

posted on 2018-10-09 11:44  --LP--  阅读(315)  评论(0编辑  收藏  举报

导航