AppImage constructor

const AppImage({
  1. Key? key,
  2. required ImageProvider<Object> image,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.cover,
  6. double radius = AppRadius.medium,
  7. Color? overlayColor,
  8. BoxBorder? border,
  9. BoxShadow? shadow,
  10. VoidCallback? onTap,
  11. AlignmentGeometry alignment = Alignment.center,
  12. Widget? placeholder,
})

Implementation

const AppImage({
  super.key,
  required this.image,
  this.width,
  this.height,
  this.fit = BoxFit.cover,
  this.radius = AppRadius.medium,
  this.overlayColor,
  this.border,
  this.shadow,
  this.onTap,
  this.alignment = Alignment.center,
  this.placeholder,
});