Skip to content

Commit eea2cdc

Browse files
author
李卓原
committed
有些不需要初始化值
1 parent bb98d5d commit eea2cdc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/screenutil.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class ScreenUtil {
1212

1313
/// UI设计中手机尺寸 , px
1414
/// Size of the phone in UI Design , px
15-
Size uiSize = defaultSize;
15+
Size uiSize;
1616

1717
/// 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为false。
1818
/// allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false.
19-
bool allowFontScaling = false;
19+
bool allowFontScaling;
2020

21-
static double _pixelRatio = 1;
22-
static double _textScaleFactor = 1;
21+
static double _pixelRatio;
22+
static double _textScaleFactor;
2323
static double _screenWidth;
2424
static double _screenHeight;
2525
static double _statusBarHeight;

0 commit comments

Comments
 (0)