getHeight method

double getHeight(
  1. BuildContext context, {
  2. double size = 1,
})

Get screen height, can be resize with size between 0 and 1.

Implementation

double getHeight(BuildContext context, {double size = 1}) {
  size = _validateSize(size);

  return MediaQuery.of(context).size.height * size;
}