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-13 10:27:55 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29a3c55362fb9a1588fd1c5664ad656062bfaeb7
29a3c553
1 parent
a584068f
Fix Using ScreenUtilInit multiple times
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/src/screenutil_init.dart
lib/src/screenutil_init.dart
View file @
29a3c55
...
...
@@ -63,6 +63,7 @@ class _ScreenUtilInitState extends State<ScreenUtilInit>
return
SizedBox
(
key:
GlobalObjectKey
(
hashValues
(
this
,
mediaQueryData
.
size
.
width
,
mediaQueryData
.
size
.
height
,
),
...
...
@@ -101,7 +102,6 @@ class _ScreenUtilInitState extends State<ScreenUtilInit>
@override
Widget
build
(
BuildContext
_context
)
{
if
(
mediaQueryData
.
size
==
Size
.
zero
)
return
const
SizedBox
.
shrink
();
if
(!
wrappedInMediaQuery
)
{
return
MediaQuery
(
// key: GlobalObjectKey('mediaQuery'),
...
...
Please
register
or
login
to post a comment