flutter之添加阴影

1.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Container(
                   width double .infinity,
                   height : ScreenUtil.getInstance().setHeight( 500 ),
                   decoration: BoxDecoration(
                       color : Colors. white ,
                       borderRadius: BorderRadius.circular( 8.0 ),
                       boxShadow: [
                         BoxShadow(
                             color : Colors.black 12 ,
                             offset: Offset( 0.0 15.0 ), //阴影xy轴偏移量
                             blurRadius:  15.0 , //阴影模糊程度
                             spreadRadius:  1.0  //阴影扩散程度
                             )
                       ]),
                 )

猜你喜欢

转载自www.cnblogs.com/sundaysme/p/12675816.html
今日推荐