CyberImage constructor
const
CyberImage({
- Key? key,
- dynamic text,
- String? label,
- dynamic isUpload = false,
- dynamic isView = true,
- dynamic isDelete = false,
- double? width,
- double? height = 200,
- dynamic fit = "cover",
- double borderRadius = 12.0,
- Widget? placeholder,
- Widget? errorWidget,
- TextStyle? labelStyle,
- bool isShowLabel = true,
- ValueChanged<
String> ? onChanged, - dynamic onLeaver(
- dynamic
- Color? backgroundColor,
- Color? borderColor,
- double borderWidth = 2.0,
- bool enabled = true,
- dynamic isVisible = true,
- bool enableCompression = true,
- int compressionQuality = 85,
- int? maxWidth = 1920,
- int? maxHeight = 1920,
- IconData? uploadIcon,
- IconData? viewIcon,
- IconData? deleteIcon,
- bool isCircle = false,
Implementation
const CyberImage({
super.key,
this.text,
this.label,
this.isUpload = false,
this.isView = true,
this.isDelete = false,
this.width,
this.height = 200,
this.fit = "cover", // Default is cover
this.borderRadius = 12.0,
this.placeholder,
this.errorWidget,
this.labelStyle,
this.isShowLabel = true,
this.onChanged,
this.onLeaver,
this.backgroundColor,
this.borderColor,
this.borderWidth = 2.0,
this.enabled = true,
this.isVisible = true,
this.enableCompression = true,
this.compressionQuality = 85,
this.maxWidth = 1920,
this.maxHeight = 1920,
this.uploadIcon,
this.viewIcon,
this.deleteIcon,
this.isCircle = false,
});