代码收藏

阴影&圆角&圆形

PhysicalModel(
  color: Colors.red, //背景
  elevation: 21.0, //阴影
  shadowColor: Colors.green, //阴影颜色
  borderRadius: BorderRadius.circular(20), //圆角
  shape: BoxShape.circle, //正圆
  child: Container(
    width: 200,
    height: 200,
  ),
),

最后更新于