ImageView constructor
ImageView({
- required double width,
- required double height,
- AssetImage? assetAspectRatio,
- AssetImage? assetBackground,
- String? urlAspectRation,
- String? urlBackground,
- Color? colorBackground,
- double? radius_all,
- double? radius_topLeft,
- double? radius_topRight,
- double? radius_bottomLeft,
- double? radius_bottomRight,
- EdgeInsets? padding,
- EdgeInsets? margin,
- double? opacity,
- Alignment? gravityLayout_alignment,
- bool? responsive_auto,
- BoxFit? boxFit_background,
- VoidCallback? onPressed,
- ValueChanged<
ImageViewState> ? onChangeState,
Implementation
ImageView( {
required double width,
required double height,
//src
AssetImage? this.assetAspectRatio,
AssetImage? this.assetBackground,
String? this.urlAspectRation,
//background
String? this.urlBackground,
Color? this.colorBackground,
//radius
double? this.radius_all ,
double? this.radius_topLeft ,
double? this.radius_topRight ,
double? this.radius_bottomLeft ,
double? this.radius_bottomRight ,
//space
EdgeInsets? this.padding,
EdgeInsets? this.margin,
//other
double? this.opacity,
Alignment? this.gravityLayout_alignment,
bool? this.responsive_auto,
BoxFit? this.boxFit_background,
//call back
VoidCallback? this.onPressed,
ValueChanged<ImageViewState>? this.onChangeState
}) {
//set
this.myWidth = width;
this.myHeight = height;
}