/**
* 圆角矩形裁剪
* const ClipRRect({
Key key,
this.borderRadius,//圆角半径
this.clipper,//裁剪路径
this.clipBehavior = Clip.antiAlias,
Widget child,
})
*/
body: Center(
child: ClipRRect(
borderRadius: BorderRadius.circular(10.0),
child: Image.asset(
"images/app.png",
width: 100.0,
height: 100.0,
fit: BoxFit.cover,
),
),
)
网友评论