Showing
1 changed file
with
1 additions
and
1 deletions
@@ -105,7 +105,7 @@ class ScreenUtil { | @@ -105,7 +105,7 @@ class ScreenUtil { | ||
105 | 105 | ||
106 | ///根据宽度或高度中的较小值进行适配 | 106 | ///根据宽度或高度中的较小值进行适配 |
107 | ///Adapt according to the smaller of width or height | 107 | ///Adapt according to the smaller of width or height |
108 | - double radius(num r) => r * scaleText; | 108 | + double radius(num r) => r * min(scaleWidth, scaleHeight); |
109 | 109 | ||
110 | ///字体大小适配方法 | 110 | ///字体大小适配方法 |
111 | ///- [fontSize] UI设计上字体的大小,单位dp. | 111 | ///- [fontSize] UI设计上字体的大小,单位dp. |
-
Please register or login to post a comment