init method

void init(
  1. BuildContext context
)

Implementation

void init(BuildContext context) async {
  _mediaQueryData = MediaQuery.of(context);
  screenWidth = _mediaQueryData.size.width;
  screenHeight = _mediaQueryData.size.height;
  blockSizeHorizontal = screenWidth / 100;
  blockSizeVertical = screenHeight / 100;
  isIpad = await isTablet(context);
}