fracHeight static method

double fracHeight(
  1. BuildContext context,
  2. double divisor
)

Retorna fração da altura total divisor vai de 0 à 1

Implementation

static double fracHeight(BuildContext context, double divisor) {
  return MediaQuery.of(context).size.height / divisor;
}