getFontRatio method

double getFontRatio(
  1. double val
)

Implementation

double getFontRatio(double val) {
  double res = (val / refWidth) * 100;
  double temp = 0.0;
  if (screenWidth! < screenHeight) {
    temp = res * safeBlockHorizontal;
  } else {
    temp = res * safeBlockVertical;
  }
  // print('$val,$temp,$refHeight,$refWidth');
  return temp;
}