YImageCorner function

Widget YImageCorner(
  1. double? width,
  2. double? height,
  3. String url,
  4. double corner, {
  5. BoxFit fit = BoxFit.cover,
  6. String? imagePlaceHolder,
})

加载图像(圆角)

Implementation

Widget YImageCorner(double? width, double? height, String url, double corner, {BoxFit fit = BoxFit.cover, String? imagePlaceHolder}) {
  return ClipRRect(borderRadius: BorderRadius.all(Radius.circular(corner)), child: YImage(width, height, url, fit: fit, imagePlaceHolder: imagePlaceHolder));
}