We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abd30fe + 735d93d commit a21502dCopy full SHA for a21502d
lib/screenutil.dart
@@ -87,7 +87,7 @@ class ScreenUtil {
87
double get scaleText => min(scaleWidth, scaleHeight);
88
89
/// 根据UI设计的设备宽度适配
90
- /// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候.
+ /// 高度也可以根据这个来做适配可以保证不变形,比如你想要一个正方形的时候.
91
/// Adapted to the device width of the UI Design.
92
/// Height can also be adapted according to this to ensure no deformation ,
93
/// if you want a square
@@ -103,6 +103,7 @@ class ScreenUtil {
103
/// does not match the current style effect, or if there is a difference in shape.
104
double setHeight(num height) => height * scaleHeight;
105
106
+ ///根据宽度或高度中的较小值进行适配
107
///Adapt according to the smaller of width or height
108
double radius(num r) => r * scaleText;
109
0 commit comments