getSizeInt static method

double getSizeInt(
  1. BuildContext context,
  2. int size
)

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;
}