AppImageCached constructor
const
AppImageCached({
- Key? key,
- required String url,
- double? width,
- double? height,
- BoxFit fit = BoxFit.cover,
- double radius = AppRadius.medium,
- Color? overlayColor,
- BoxBorder? border,
- BoxShadow? shadow,
- VoidCallback? onTap,
- Alignment alignment = Alignment.center,
- IconData? placeholderIcon,
- IconData? errorIcon,
- Color? placeholderColor,
- Duration fadeInDuration = const Duration(milliseconds: 300),
Implementation
const AppImageCached({
super.key,
required this.url,
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.placeholderIcon,
this.errorIcon,
this.placeholderColor,
this.fadeInDuration = const Duration(milliseconds: 300),
});