码迷,mamicode.com
首页 > 其他好文 > 详细

Flutter 添加阴影效果

时间:2019-10-17 13:59:06      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:ack   模糊   scree   class   eth   blur   偏移量   pre   tin   

Container(
                  width: double.infinity,
                  height: ScreenUtil.getInstance().setHeight(500),
                  decoration: BoxDecoration(
                      color: Colors.white,
                      borderRadius: BorderRadius.circular(8.0),
                      boxShadow: [
                        BoxShadow(
                            color: Colors.black12,
                            offset: Offset(0.0, 15.0), //阴影xy轴偏移量
                            blurRadius: 15.0, //阴影模糊程度
                            spreadRadius: 1.0 //阴影扩散程度
                            )
                      ]),
                )

  

Flutter 添加阴影效果

标签:ack   模糊   scree   class   eth   blur   偏移量   pre   tin   

原文地址:https://www.cnblogs.com/yjpjy/p/11691418.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!