height static method

double height(
  1. double inputHeight
)

Calculates a scaled height value.

Implementation

static double height(double inputHeight) {
  if (!_isInitialized) init();
  double hScale = (screenHeight / _designHeight).clamp(_minScale, _maxScale);
  if (screenWidth > screenHeight) {
    hScale *= 0.92;
  }
  return inputHeight * hScale;
}