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