screenHeightPercentage static method

double screenHeightPercentage(
  1. BuildContext context,
  2. double percentage
)

Implementation

static double screenHeightPercentage(BuildContext context, double percentage) {
  return MediaQuery.of(context).size.height * (percentage / 100);
}