Skip to content

Commit 735d93d

Browse files
authored
Update screenutil.dart
close #190
1 parent c7829b2 commit 735d93d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/screenutil.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ScreenUtil {
8787
double get scaleText => min(scaleWidth, scaleHeight);
8888

8989
/// 根据UI设计的设备宽度适配
90-
/// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候.
90+
/// 高度也可以根据这个来做适配可以保证不变形,比如你想要一个正方形的时候.
9191
/// Adapted to the device width of the UI Design.
9292
/// Height can also be adapted according to this to ensure no deformation ,
9393
/// if you want a square
@@ -103,6 +103,7 @@ class ScreenUtil {
103103
/// does not match the current style effect, or if there is a difference in shape.
104104
double setHeight(num height) => height * scaleHeight;
105105

106+
///根据宽度或高度中的较小值进行适配
106107
///Adapt according to the smaller of width or height
107108
double radius(num r) => r * scaleText;
108109

0 commit comments

Comments
 (0)