YImageCircle function

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

加载图像(圆形)

Implementation

Widget YImageCircle(
  double? width,
  double? height,
  String url, {
  BoxFit fit = BoxFit.cover,
  String? imagePlaceHolder,
}) {
  return ClipOval(child: YImage(width, height, url, fit: fit, imagePlaceHolder: imagePlaceHolder));
}