/**
* 矩形裁剪
* ClipRect({
* Key key,
* this.clipper,
* this.clipBehavior = Clip.hardEdge,
* Widget child })
*/
body: Center(
child: ClipRect(
child: Image.asset(
"images/app.png",
width: 100.0,
height: 100.0,
fit: BoxFit.cover,
),
),
)
网友评论