oneHalf static method

double oneHalf(
  1. BuildContext context
)

Defines a width of 50% of the screen size

Implementation

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