convertHeight method

double convertHeight(
  1. num height
)

根据UI设计的设备高度适配 当发现UI设计中的一屏显示的与当前样式效果不符合时, 或者形状有差异时,建议使用此方法实现高度适配. 高度适配主要针对想根据UI设计的一屏展示一样的效果 Highly adaptable to the device according to UI Design It is recommended to use this method to achieve a high degree of adaptation when it is found that one screen in the UI design does not match the current style effect, or if there is a difference in shape.

Implementation

double convertHeight(num height) => scaleHeight * height;