initScaling function

void initScaling(
  1. BuildContext context
)

Implementation

void initScaling(BuildContext context) {
  var mq = MediaQuery.of(context);
  _width = mq.size.width < mq.size.height ? mq.size.width : mq.size.height;
  _scalingFactor = _width / _refWidth;

  print('width => $_width');
}