getViewMode_background method

Widget getViewMode_background()

Implementation

Widget getViewMode_background() {
  //check not found background
  if( isModeBackground == false  ) {
    return EmptyView.zero();
  }

  //init type
  _setImageProvider_mode_background();

  //return view
  var cont =   Container(
    alignment: gravityLayout_alignment,
    padding: padding,
    // margin: margin,
    width: width,
      height: height,
    child: EmptyViewSizeImage(), //EmptyView.empty(width, height),
    decoration: BoxDecoration(
        borderRadius: boarderRadius,
        color: colorBackground,
        image: DecorationImage(
            image: imageProviderChoosed,
           fit: getBoxFit_background()
           //fit:  BoxFit.fill, // like android not crop
          //fit:  BoxFit.cover,  //make crop the image to be good quality , even it crop
        )
    ),
  );

  return clickOnThisArea(cont);
}