Showing
1 changed file
with
1 additions
and
0 deletions
@@ -9,6 +9,7 @@ class MyApp extends StatelessWidget { | @@ -9,6 +9,7 @@ class MyApp extends StatelessWidget { | ||
9 | Widget build(BuildContext context) { | 9 | Widget build(BuildContext context) { |
10 | // In first method you only need to wrap [MaterialApp] with [ScreenUtilInit] and that's it | 10 | // In first method you only need to wrap [MaterialApp] with [ScreenUtilInit] and that's it |
11 | return ScreenUtilInit( | 11 | return ScreenUtilInit( |
12 | + useInheritedMediaQuery: true, | ||
12 | builder: (_, child) { | 13 | builder: (_, child) { |
13 | return MaterialApp( | 14 | return MaterialApp( |
14 | debugShowCheckedModeBanner: false, | 15 | debugShowCheckedModeBanner: false, |
-
Please register or login to post a comment