ImageView constructor
const
ImageView({
- Key? key,
- required ImageType type,
- required String imageSrc,
- BoxFit fit = BoxFit.cover,
- Color? imageColor,
- Widget? placeholder,
- Widget? error,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? backgroundColor,
- bool isCircle = false,
- BorderRadius? radius,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadows, - Gradient? gradient,
- BoxConstraints? constraints,
- Rect? centerSlice,
Func
Implementation
const ImageView({
super.key,
required this.type,
required this.imageSrc,
this.fit = BoxFit.cover,
this.imageColor,
this.placeholder,
this.error,
this.width,
this.height,
this.padding,
this.margin,
this.backgroundColor,
this.isCircle = false,
this.radius,
this.border,
this.boxShadows,
this.gradient,
this.constraints,
this.centerSlice,
});