FlutterImageWidget constructor

FlutterImageWidget({
  1. Key? key,
  2. String? url,
  3. String? imageAssetPath,
  4. String? svgPath,
  5. File? pickerFilePath,
  6. double? height,
  7. double? width,
  8. Color? color,
  9. BoxFit? fit,
  10. Alignment? alignment,
  11. VoidCallback? onTap,
  12. BorderRadius? radius,
  13. EdgeInsetsGeometry? margin,
  14. BoxBorder? border,
  15. String placeHolder = ImageConstant.imageNotFound,
})

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

Implementation

FlutterImageWidget({
  super.key,
  this.url,
  this.imageAssetPath,
  this.svgPath,
  this.pickerFilePath,
  this.height,
  this.width,
  this.color,
  this.fit,
  this.alignment,
  this.onTap,
  this.radius,
  this.margin,
  this.border,
  this.placeHolder = ImageConstant.imageNotFound,
});