@@ -13,9 +13,8 @@ class Config with WidgetsBindingObserver {
1313
1414 BuildContext ? _context;
1515 BoxConstraints ? _constraint;
16- Orientation ? _orientation;
1716
18- ScreenType _screenType = ScreenType .UNDEFINED ;
17+ ScreenType _screenType = ScreenType .undefined ;
1918
2019 double _screenWidth = 0.0 ;
2120 double _pixelRatio = 1.0 ;
@@ -37,7 +36,6 @@ class Config with WidgetsBindingObserver {
3736 }) {
3837 _context = context;
3938 _constraint = constraint;
40- _orientation = orientation;
4139
4240 _screenWidth =
4341 isBreakPointEnabled
@@ -64,47 +62,47 @@ class Config with WidgetsBindingObserver {
6462 _scaleFactor =
6563 (_screenWidth / DeviceConstant .desktopWidth) *
6664 DeviceConstant .desktopScale;
67- _screenType = ScreenType .ULTRA_LARGE ;
65+ _screenType = ScreenType .ultraLarge ;
6866
6967 /// For Tablet Devices ( >= 768)
7068 ///
7169 } else if (_screenWidth >= DeviceConstant .tabletWidth) {
7270 _scaleFactor =
7371 (_screenWidth / DeviceConstant .tabletWidth) *
7472 DeviceConstant .tabletScale;
75- _screenType = ScreenType .EXTRA_LARGE ;
73+ _screenType = ScreenType .extraLarge ;
7674
7775 /// For Extra Large Mobile Device (>= 600)
7876 ///
7977 } else if (_screenWidth >= DeviceConstant .extraLargeMobileWidth) {
8078 _scaleFactor =
8179 (_screenWidth / DeviceConstant .extraLargeMobileWidth) *
8280 DeviceConstant .extraLargeMobileScale;
83- _screenType = ScreenType .LARGE ;
81+ _screenType = ScreenType .large ;
8482
8583 /// For Large Mobile Device ( >= 480)
8684 ///
8785 } else if (_screenWidth >= DeviceConstant .largeMobileWidth) {
8886 _scaleFactor =
8987 (_screenWidth / DeviceConstant .largeMobileWidth) *
9088 DeviceConstant .largeMobileScale;
91- _screenType = ScreenType .LARGE ;
89+ _screenType = ScreenType .large ;
9290
9391 /// For Medium Mobile Device ( >= 375)
9492 ///
9593 } else if (_screenWidth >= DeviceConstant .mobileWidth) {
9694 _scaleFactor =
9795 (_screenWidth / DeviceConstant .mobileWidth) *
9896 DeviceConstant .mobileScale;
99- _screenType = ScreenType .MEDIUM ;
97+ _screenType = ScreenType .medium ;
10098
10199 /// For Small Mobile Device ( >= 320)
102100 ///
103101 } else {
104102 _scaleFactor =
105103 (_screenWidth / DeviceConstant .smallMobileWidth) *
106104 DeviceConstant .smallMobileScale;
107- _screenType = ScreenType .SMALL ;
105+ _screenType = ScreenType .small ;
108106 }
109107 }
110108
0 commit comments