File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,25 @@ import 'package:flutter_screenutil/screenutil.dart';
2
2
3
3
extension SizeExtension on num {
4
4
///[ScreenUtil.setWidth]
5
- num get w => ScreenUtil ().setWidth (this );
5
+ double get w => ScreenUtil ().setWidth (this );
6
6
7
7
///[ScreenUtil.setHeight]
8
- num get h => ScreenUtil ().setHeight (this );
8
+ double get h => ScreenUtil ().setHeight (this );
9
9
10
10
///[ScreenUtil.setSp]
11
- num get sp => ScreenUtil ().setSp (this );
11
+ double get sp => ScreenUtil ().setSp (this );
12
12
13
13
///[ScreenUtil.setSp]
14
- num get ssp => ScreenUtil ().setSp (this , allowFontScalingSelf: true );
14
+ double get ssp => ScreenUtil ().setSp (this , allowFontScalingSelf: true );
15
15
16
16
///[ScreenUtil.setSp]
17
- num get nsp => ScreenUtil ().setSp (this , allowFontScalingSelf: false );
17
+ double get nsp => ScreenUtil ().setSp (this , allowFontScalingSelf: false );
18
18
19
19
///屏幕宽度的倍数
20
20
///Multiple of screen width
21
- num get wp => ScreenUtil ().screenWidth * this ;
21
+ double get wp => ScreenUtil ().screenWidth * this ;
22
22
23
23
///屏幕高度的倍数
24
24
///Multiple of screen height
25
- num get hp => ScreenUtil ().screenHeight * this ;
25
+ double get hp => ScreenUtil ().screenHeight * this ;
26
26
}
You can’t perform that action at this time.
0 commit comments