Skip to content

Commit

Permalink
代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
李卓原 committed May 15, 2023
1 parent d5cb8b1 commit ee56db7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/src/screen_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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>();

Expand Down

0 comments on commit ee56db7

Please sign in to comment.