oneHalf static method

double oneHalf(
  1. BuildContext context
)

Defines an height of 50% of the screen size

Implementation

static double oneHalf(BuildContext context) {
  return MediaQuery.of(context).size.height / 2;
}