getScaleH static method
仅支持纵屏。 returns the size after adaptation according to the screen height.(unit dp or pt) 返回根据屏幕高适配后尺寸 (单位 dp or pt) size unit dp or pt
Implementation
static double getScaleH(BuildContext context, double size) {
if (getScreenH(context) == 0.0) return size;
return size * getScreenH(context) / _designH;
}