getViewMode_aspectRatio method
Widget
getViewMode_aspectRatio(
)
Implementation
Widget getViewMode_aspectRatio() {
//check not found background
if( isModeAspectRatio == false ) {
return EmptyView.zero();
}
//init type
_setImageProviderModeAspectRatio();
//Log.k(tag, "getViewMode_aspectRatio() - boarderRadius: " + boarderRadius.toString() );
//return view
var cont = Container(
alignment: gravityLayoutAlignment,
padding: padding,
// margin: margin,
width: width,
height: height,
child: EmptyViewSizeImage(),
decoration: BoxDecoration(
color: colorBackground,
borderRadius: boarderRadius,
image: DecorationImage(
image: imageProviderChoosed,
fit: chooseFitBox(),
)),
);
var sizeBox = SizedBox(child: cont,
width: EdgeInsetsTools.getNetSizeAfterPadding(width, padding!),
height: EdgeInsetsTools.getNetSizeAfterPadding(height, padding!)
);
return clickOnThisArea(sizeBox);
}