美文网首页
flutter 圆角

flutter 圆角

作者: 奋斗的小蜗牛yyl | 来源:发表于2019-07-23 13:27 被阅读0次

1.container 自带的decoration 属性可以做圆角
2.使用ClipOval 全部圆角

      ClipOval(
              child:Container(
                  width:100,
                  height:100,
                 color: Colors.red
               ),
            )

3.使用CliRRect

      ClipRRect(
              borderRadius: BorderRadius.circular(20),
            )

相关文章

网友评论

      本文标题:flutter 圆角

      本文链接:https://www.haomeiwen.com/subject/arpolctx.html