getHeight method

double getHeight(
  1. double size
)

仅支持纵屏。 returns the size after adaptation according to the screen height.(unit dp or pt) 返回根据屏幕高适配后尺寸(单位 dp or pt) size unit dp or pt

Implementation

double getHeight(double size) {
  return _screenHeight == 0.0 ? size : (size * _screenHeight / _designH);
}