Skip to content

Commit 7711aa6

Browse files
authored
Update screenutil.dart
flutter 1.25 : Error: 'Window' isn't a type.
1 parent f716fef commit 7711aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/screenutil.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ScreenUtil {
4747
_screenWidth = constraints.maxWidth;
4848
_screenHeight = constraints.maxHeight;
4949

50-
ui.Window mediaQuery = ui.window;
50+
var mediaQuery = ui.window;
5151
_pixelRatio = mediaQuery.devicePixelRatio;
5252
_statusBarHeight = mediaQuery.padding.top;
5353
_bottomBarHeight = mediaQuery.padding.bottom;

0 commit comments

Comments
 (0)