getWidthRatio method
Implementation
double getWidthRatio(double val) {
if (screenWidth >= 1200 ||
(Platform.isLinux || Platform.isMacOS || Platform.isWindows)) {
return val;
}
double res = (val / refWidth) * 100;
double temp = res * blockSizeHorizontal;
// print("width$temp");
return temp;
}