FadeInImageAssetNetwork static method

Widget FadeInImageAssetNetwork(
  1. String imgPath, {
  2. String placeholder = "none",
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.cover,
})

加载网络图片

Implementation

static Widget FadeInImageAssetNetwork(String imgPath,
    {String placeholder : "none", double? width, double? height, BoxFit fit: BoxFit.cover}){
  print(imgPath);
  return FadeInImage.assetNetwork(
    image: imgPath == null ? "" : imgPath,
    placeholder:placeholder,
    width: width,
    height: height,
    fit: fit,
  );
}