李卓原

有些不需要初始化值

@@ -12,14 +12,14 @@ class ScreenUtil { @@ -12,14 +12,14 @@ class ScreenUtil {
12 12
13 /// UI设计中手机尺寸 , px 13 /// UI设计中手机尺寸 , px
14 /// Size of the phone in UI Design , px 14 /// Size of the phone in UI Design , px
15 - Size uiSize = defaultSize; 15 + Size uiSize;
16 16
17 /// 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为false。 17 /// 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为false。
18 /// allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false. 18 /// allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false.
19 - bool allowFontScaling = false; 19 + bool allowFontScaling;
20 20
21 - static double _pixelRatio = 1;  
22 - static double _textScaleFactor = 1; 21 + static double _pixelRatio;
  22 + static double _textScaleFactor;
23 static double _screenWidth; 23 static double _screenWidth;
24 static double _screenHeight; 24 static double _screenHeight;
25 static double _statusBarHeight; 25 static double _statusBarHeight;