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