getHeightRatio method

double getHeightRatio(
  1. double val
)

Implementation

double getHeightRatio(double val) {
  if (screenWidth >= 1200 ||
      (Platform.isLinux || Platform.isMacOS || Platform.isWindows)) {
    return val;
  }
  double res = (val / refHeight) * 100;
  double temp = res * blockSizeVertical;
  return temp;
}