setWebWidth method

num setWebWidth(
  1. num scaleWidth
)

设置Width(流式布局) scaleWidth 0 - 1 ,可以是小数 根据UI设计的设备宽度适配 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候. Adapted to the device width of the UI Design. Height can also be adapted according to this to ensure no deformation , if you want a square

Implementation

num setWebWidth(num scaleWidth) => scaleWidth * _screenWidth;