getFontRatio method

double getFontRatio(
  1. double val
)

Implementation

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