getViewModeBackground method

Widget getViewModeBackground()

Implementation

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

  //init type
  _setImageProviderModeBackground();

  //return view
  var cont =   Container(
    alignment: gravityLayoutAlignment,
    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: getBoxFitBackground()
          //fit:  BoxFit.fill, // like android not crop
          //fit:  BoxFit.cover,  //make crop the image to be good quality , even it crop
        )
    ),
  );

  return clickOnThisArea(cont);
}