flutter实现页面背景透明

2019-12-21  本文已影响0人  米娜与罗夏

Colors.transparent 透明

                  Container(
                      width: 100,
                      height: 100,
                      decoration: new BoxDecoration(
                        //背景Colors.transparent 透明
                        color: Colors.transparent,
                        //设置四周圆角 角度
                        borderRadius: BorderRadius.all(Radius.circular(4.0)),
                        //设置四周边框
                        border:
                            new Border.all(width: 1, color: Color(0xFFAAAAAA)),
                      ))
上一篇 下一篇

猜你喜欢

热点阅读