flutter container阴影实现

效果图


image.png

关键代码

        Container(
          decoration: new BoxDecoration(
            boxShadow: [BoxShadow(color: Colors.grey, blurRadius: 20.0.wDp)],
            color: Colors.white,
            borderRadius: new BorderRadius.circular((20.0.wDp)),
          ),
)

by UU 2021-01-18

推荐阅读更多精彩内容