heightOf static method

double heightOf(
  1. double factor,
  2. BuildContext context
)

Implementation

static double heightOf(double factor, BuildContext context) {
  var height = MediaQuery.of(context).size.height;
  return factor * (height / 100);
}