getSizeInt static method
Implementation
static double getSizeInt(BuildContext context, int size) {
var designHeight = 850;
var totalHight = MediaQuery.of(context).size.height;
var newHeight = (totalHight / designHeight) * size;
// print(
// "new height = $newHeight, total height = ${totalHight}, designHeight = $designHeight");
return newHeight;
}