File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class ScreenUtil {
97
97
/// Adapted to the device width of the UI Design.
98
98
/// Height can also be adapted according to this to ensure no deformation ,
99
99
/// if you want a square
100
- num setWidth (num width) => width * scaleWidth;
100
+ double setWidth (num width) => width * scaleWidth;
101
101
102
102
/// 根据UI设计的设备高度适配
103
103
/// 当发现UI设计中的一屏显示的与当前样式效果不符合时,
@@ -107,14 +107,14 @@ class ScreenUtil {
107
107
/// It is recommended to use this method to achieve a high degree of adaptation
108
108
/// when it is found that one screen in the UI design
109
109
/// does not match the current style effect, or if there is a difference in shape.
110
- num setHeight (num height) => height * scaleHeight;
110
+ double setHeight (num height) => height * scaleHeight;
111
111
112
112
///字体大小适配方法
113
113
///@param [fontSize] UI设计上字体的大小,单位px.
114
114
///Font size adaptation method
115
115
///@param [fontSize] The size of the font on the UI design, in px.
116
116
///@param [allowFontScaling]
117
- num setSp (num fontSize, {bool allowFontScalingSelf}) =>
117
+ double setSp (num fontSize, {bool allowFontScalingSelf}) =>
118
118
allowFontScalingSelf == null
119
119
? (allowFontScaling
120
120
? (fontSize * scaleText)
You can’t perform that action at this time.
0 commit comments