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
李卓原
2023-05-15 14:22:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ee56db765bf88afe619f3508d3f183b977db8fc8
ee56db76
1 parent
d5cb8b10
代码优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
lib/src/screen_util.dart
lib/src/screen_util.dart
View file @
ee56db7
...
...
@@ -94,10 +94,6 @@ class ScreenUtil {
bool
splitScreenMode
=
false
,
bool
minTextAdapt
=
false
,
bool
scaleByHeight
=
false
})
async
{
//todo 考虑直接使用context
// final navigatorContext = Navigator.maybeOf(context)?.context as Element?;
// final mediaQueryContext =
// navigatorContext?.getElementForInheritedWidgetOfExactType<MediaQuery>();
final
mediaQueryContext
=
context
.
getElementForInheritedWidgetOfExactType
<
MediaQuery
>();
...
...
Please
register
or
login
to post a comment