Flutter 添加阴影效果
时间:2019-10-17 14:19:11
收藏:0
阅读:1240
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 //阴影扩散程度
)
]),
)
原文:https://www.cnblogs.com/yjpjy/p/11691418.html
评论(0)