File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import 'package:flutter/material.dart';
10
10
11
11
class ScreenUtil {
12
12
static const Size defaultSize = Size (360 , 690 );
13
- static ScreenUtil _instance = ScreenUtil ._() ;
13
+ static late ScreenUtil _instance;
14
14
15
15
/// UI设计中手机尺寸 , dp
16
16
/// Size of the phone in UI Design , dp
@@ -42,7 +42,7 @@ class ScreenUtil {
42
42
Size designSize = defaultSize,
43
43
bool allowFontScaling = false ,
44
44
}) {
45
- _instance
45
+ _instance = ScreenUtil ._()
46
46
..uiSize = designSize
47
47
..allowFontScaling = allowFontScaling
48
48
.._orientation = orientation;
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ class ScreenUtilInit extends StatelessWidget {
31
31
designSize: designSize,
32
32
allowFontScaling: allowFontScaling,
33
33
);
34
+ return builder ();
34
35
}
35
- return builder ();
36
+ return Container ();
36
37
},
37
38
);
38
39
});
You can’t perform that action at this time.
0 commit comments