flutter GridView简单使用

child: new Container(
                      color: Colors.deepOrange,
                      child: new GridView.count(
                        crossAxisCount: 2,
                        padding: const EdgeInsets.all(0.0),
                        mainAxisSpacing: 0.0,
                        crossAxisSpacing: 0.0,
                        children: <Widget>[
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                          new Text("這裡是广告"),
                        ],
                      ))

 

posted on 2018-10-16 23:27  --LP--  阅读(1636)  评论(0)    收藏  举报

导航