fetchLocalImage function

Widget fetchLocalImage(
  1. File? file, {
  2. double width = 48,
  3. double height = 48,
})

Implementation

Widget fetchLocalImage(File? file, {double width = 48, double height = 48}) {
  return file == null
      ? Image.asset(
          Utils.getImgPath(commonConfig.defaultLocalImgRes),
          width: width,
          height: height,
          fit: BoxFit.cover,
        )
      : Image.file(file, fit: BoxFit.cover, width: width, height: height);
}