Committed by
GitHub
Merge pull request #177 from flutterbest/patch-1
Update screenutil.dart
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -47,7 +47,7 @@ class ScreenUtil { | @@ -47,7 +47,7 @@ class ScreenUtil { | ||
| 47 | _screenWidth = constraints.maxWidth; | 47 | _screenWidth = constraints.maxWidth; |
| 48 | _screenHeight = constraints.maxHeight; | 48 | _screenHeight = constraints.maxHeight; |
| 49 | 49 | ||
| 50 | - ui.Window mediaQuery = ui.window; | 50 | + var mediaQuery = ui.window; |
| 51 | _pixelRatio = mediaQuery.devicePixelRatio; | 51 | _pixelRatio = mediaQuery.devicePixelRatio; |
| 52 | _statusBarHeight = mediaQuery.padding.top; | 52 | _statusBarHeight = mediaQuery.padding.top; |
| 53 | _bottomBarHeight = mediaQuery.padding.bottom; | 53 | _bottomBarHeight = mediaQuery.padding.bottom; |
-
Please register or login to post a comment