Showing
1 changed file
with
0 additions
and
4 deletions
| @@ -94,10 +94,6 @@ class ScreenUtil { | @@ -94,10 +94,6 @@ class ScreenUtil { | ||
| 94 | bool splitScreenMode = false, | 94 | bool splitScreenMode = false, |
| 95 | bool minTextAdapt = false, | 95 | bool minTextAdapt = false, |
| 96 | bool scaleByHeight = false}) async { | 96 | bool scaleByHeight = false}) async { |
| 97 | - //todo 考虑直接使用context | ||
| 98 | - // final navigatorContext = Navigator.maybeOf(context)?.context as Element?; | ||
| 99 | - // final mediaQueryContext = | ||
| 100 | - // navigatorContext?.getElementForInheritedWidgetOfExactType<MediaQuery>(); | ||
| 101 | final mediaQueryContext = | 97 | final mediaQueryContext = |
| 102 | context.getElementForInheritedWidgetOfExactType<MediaQuery>(); | 98 | context.getElementForInheritedWidgetOfExactType<MediaQuery>(); |
| 103 | 99 |
-
Please register or login to post a comment