Skip to main content

test method

void test ()

Implementation

void test() \{
_mediaQueryData =
const MediaQueryData(size: Size(360, 684), padding: EdgeInsets.zero);
screenWidth = _mediaQueryData.size.width;
screenHeight = _mediaQueryData.size.height;
blockSizeHorizontal = screenWidth! / 100;
blockSizeVertical = screenHeight! / 100;

_safeAreaHorizontal =
_mediaQueryData.padding.left + _mediaQueryData.padding.right;
_safeAreaVertical =
_mediaQueryData.padding.top + _mediaQueryData.padding.bottom;
safeBlockHorizontal = (screenWidth! - _safeAreaHorizontal) / 100;
safeBlockVertical = (screenHeight! - _safeAreaVertical) / 100;
\}