Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
小淘客
2020-12-06 12:21:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-12-06 12:21:58 +0800
Commit
7711aa6ce94f6edb55b8ee0b8b132f5eb6cea63b
7711aa6c
1 parent
f716fefd
Update screenutil.dart
flutter 1.25 : Error: 'Window' isn't a type.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/screenutil.dart
lib/screenutil.dart
View file @
7711aa6
...
...
@@ -47,7 +47,7 @@ class ScreenUtil {
_screenWidth
=
constraints
.
maxWidth
;
_screenHeight
=
constraints
.
maxHeight
;
ui
.
Window
mediaQuery
=
ui
.
window
;
var
mediaQuery
=
ui
.
window
;
_pixelRatio
=
mediaQuery
.
devicePixelRatio
;
_statusBarHeight
=
mediaQuery
.
padding
.
top
;
_bottomBarHeight
=
mediaQuery
.
padding
.
bottom
;
...
...
Please
register
or
login
to post a comment