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
Mounir-Bouaiche
2022-05-17 20:19:00 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a736ecc8e315615dab3714be0762a018cef532d0
a736ecc8
1 parent
7aad1898
ix compatibility with flutter sdk 2.x
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/src/screen_util.dart
lib/src/screen_util.dart
View file @
a736ecc
...
...
@@ -101,7 +101,7 @@ class ScreenUtil {
final
initCompleter
=
Completer
<
void
>();
Widgets
Binding
.
instance
.
addPostFrameCallback
((
_
)
{
Widgets
FlutterBinding
.
ensureInitialized
()
.
addPostFrameCallback
((
_
)
{
mediaQueryContext
?.
visitChildElements
((
el
)
=>
_instance
.
_context
=
el
);
if
(
_instance
.
_context
!=
null
)
initCompleter
.
complete
();
});
...
...
Please
register
or
login
to post a comment