Jonny Borges
Committed by GitHub

Merge pull request #2902 from Aniketkhote/master

'useInheritedMediaQuery' is deprecated and shouldn't be used
sdk.dir=/Users/jonatasborges/Library/Android/sdk
flutter.sdk=/Users/jonatasborges/flutter
\ No newline at end of file
sdk.dir=C:\\Users\\anike\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\flutter
\ No newline at end of file
... ...
... ... @@ -1242,14 +1242,14 @@ extension GetNavigationExt on GetInterface {
}
/// The window to which this binding is bound.
ui.SingletonFlutterWindow get window => engine.window;
ui.PlatformDispatcher get window => engine.platformDispatcher;
Locale? get deviceLocale => engine.window.locale;
Locale? get deviceLocale => window.locale;
///The number of device pixels for each logical pixel.
double get pixelRatio => engine.window.devicePixelRatio;
double get pixelRatio => window.implicitView!.devicePixelRatio;
Size get size => engine.window.physicalSize / pixelRatio;
Size get size => window.implicitView!.physicalSize / pixelRatio;
///The horizontal extent of this size.
double get width => size.width;
... ... @@ -1259,14 +1259,14 @@ extension GetNavigationExt on GetInterface {
///The distance from the top edge to the first unpadded pixel,
///in physical pixels.
double get statusBarHeight => engine.window.padding.top;
double get statusBarHeight => window.implicitView!.padding.top;
///The distance from the bottom edge to the first unpadded pixel,
///in physical pixels.
double get bottomBarHeight => engine.window.padding.bottom;
double get bottomBarHeight => window.implicitView!.padding.bottom;
///The system-reported text scale.
double get textScaleFactor => engine.window.textScaleFactor;
double get textScaleFactor => window.textScaleFactor;
/// give access to TextTheme.of(context)
TextTheme get textTheme => theme.textTheme;
... ...
... ... @@ -252,7 +252,6 @@ class GetCupertinoApp extends StatelessWidget {
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
shortcuts: shortcuts,
scrollBehavior: scrollBehavior,
useInheritedMediaQuery: useInheritedMediaQuery,
);
}),
);
... ...
... ... @@ -281,7 +281,6 @@ class GetMaterialApp extends StatelessWidget {
debugShowCheckedModeBanner: debugShowCheckedModeBanner,
shortcuts: shortcuts,
scrollBehavior: scrollBehavior,
useInheritedMediaQuery: useInheritedMediaQuery,
);
}),
);
... ...