Flutter之ClipRect组件

/**
 * 矩形裁剪
 *  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,
              ),
            ),
          )

码云地址:https://gitee.com/xgljh/Flutter.git

你可能感兴趣的:(Flutter之ClipRect组件)