CustomImage constructor
const
CustomImage({
- Key? key,
- required String imageUrl,
- File? image,
- Uint8List? imageBytes,
- double? height,
- bool isBackgroundImage = true,
- double? width,
- double padding = 0,
- double? borderRadius,
- Color? overlayColor = Colors.black12,
- Border? border,
- CustomFileType fileType = CustomFileType.network,
- BoxFit? fit = BoxFit.cover,
- bool showLoader = false,
this is the constructor of the custom image
Implementation
const CustomImage({
super.key,
required this.imageUrl,
this.image,
this.imageBytes, // Added for memory images
this.height,
this.isBackgroundImage = true,
this.width,
this.padding = 0,
this.borderRadius,
this.overlayColor = Colors.black12,
this.border,
this.fileType = CustomFileType.network,
this.fit = BoxFit.cover,
this.showLoader = false,
});