Showing
1 changed file
with
2 additions
and
1 deletions
@@ -87,7 +87,7 @@ class ScreenUtil { | @@ -87,7 +87,7 @@ class ScreenUtil { | ||
87 | double get scaleText => min(scaleWidth, scaleHeight); | 87 | double get scaleText => min(scaleWidth, scaleHeight); |
88 | 88 | ||
89 | /// 根据UI设计的设备宽度适配 | 89 | /// 根据UI设计的设备宽度适配 |
90 | - /// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候. | 90 | + /// 高度也可以根据这个来做适配可以保证不变形,比如你想要一个正方形的时候. |
91 | /// Adapted to the device width of the UI Design. | 91 | /// Adapted to the device width of the UI Design. |
92 | /// Height can also be adapted according to this to ensure no deformation , | 92 | /// Height can also be adapted according to this to ensure no deformation , |
93 | /// if you want a square | 93 | /// if you want a square |
@@ -103,6 +103,7 @@ class ScreenUtil { | @@ -103,6 +103,7 @@ class ScreenUtil { | ||
103 | /// does not match the current style effect, or if there is a difference in shape. | 103 | /// does not match the current style effect, or if there is a difference in shape. |
104 | double setHeight(num height) => height * scaleHeight; | 104 | double setHeight(num height) => height * scaleHeight; |
105 | 105 | ||
106 | + ///根据宽度或高度中的较小值进行适配 | ||
106 | ///Adapt according to the smaller of width or height | 107 | ///Adapt according to the smaller of width or height |
107 | double radius(num r) => r * scaleText; | 108 | double radius(num r) => r * scaleText; |
108 | 109 |
-
Please register or login to post a comment