loadImageFileOrigin static method

Widget loadImageFileOrigin(
  1. File file, {
  2. double? width,
  3. double? height,
  4. BoxFit? fit = BoxFit.cover,
  5. double roundRadius = 0,
})

Implementation

static Widget loadImageFileOrigin(File file,
    {double? width, double? height, BoxFit? fit:BoxFit.cover,double roundRadius:0}){
  Image image = Image.file(file, height: height, width: width, fit: fit,);
  final ImageStream stream = image.image.resolve(ImageConfiguration.empty);
  stream.addListener(ImageStreamListener((ImageInfo image, bool synchronousCall){
  },onError: (dynamic exception, StackTrace? stackTrace) {
  } ));
  return image;
}