init method
Implementation
void init(BuildContext context) {
_mediaQueryData = MediaQuery.of(context);
screenWidth = _getSizeHorizontal();
screenHeight = _getSizeVertical();
blockSizeHorizontal = screenWidth! / 100;
blockSizeVertical = screenHeight / 100;
_safeAreaHorizontal =
_mediaQueryData.padding.left + _mediaQueryData.padding.right;
_safeAreaVertical =
_mediaQueryData.padding.top + _mediaQueryData.padding.bottom;
safeBlockHorizontal = (screenWidth! - _safeAreaHorizontal) / 50;
safeBlockVertical = (screenHeight - _safeAreaVertical) / 50;
}