CommonImageView constructor

CommonImageView({
  1. String? url,
  2. String? imagePath,
  3. String? svgPath,
  4. File? file,
  5. double? height,
  6. double? width,
  7. Color? color,
  8. BoxFit fit = BoxFit.fill,
  9. String placeHolder = 'assets/images/image_not_found.png',
  10. dynamic pub,
})

a CommonNetworkImageView it can be used for showing any network images it will shows the placeholder image if image is not found on network

Implementation

CommonImageView({
  this.url,
  this.imagePath,
  this.svgPath,
  this.file,
  this.height,
  this.width,
  this.color,
  this.fit = BoxFit.fill,
  this.placeHolder = 'assets/images/image_not_found.png',
  this.pub,
});