From 2b3a16b45989eeb6fb43b28693dac9099b587de8 Mon Sep 17 00:00:00 2001 From: Tim Maffett Date: Mon, 11 Dec 2023 15:11:10 -0800 Subject: [PATCH] fix typo of 'not' instead of 'now' for `useInheritedMediaQuery` (#139940) The doc comment for `useInheritedMediaQuery` has a typo of 'not' instead of 'now' and it is confusing at the `@Deprecated()` message clearly states it is *now* ignored. (and indeed checking the code you can verify that it *is* indeed ignored) existing code before PR: ```dart /// {@template flutter.widgets.widgetsApp.useInheritedMediaQuery} /// Deprecated. This setting is not ignored. /// ^^^ /// The widget never introduces its own [MediaQuery]; the [View] widget takes /// care of that. /// {@endtemplate} @Deprecated( 'This setting is now ignored. ' 'WidgetsApp never introduces its own MediaQuery; the View widget takes care of that. ' 'This feature was deprecated after v3.7.0-29.0.pre.' ) final bool useInheritedMediaQuery; ``` - [X ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. --- packages/flutter/lib/src/widgets/app.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/app.dart b/packages/flutter/lib/src/widgets/app.dart index 19d66d50a0e1e..203893e9631eb 100644 --- a/packages/flutter/lib/src/widgets/app.dart +++ b/packages/flutter/lib/src/widgets/app.dart @@ -1171,7 +1171,7 @@ class WidgetsApp extends StatefulWidget { final String? restorationScopeId; /// {@template flutter.widgets.widgetsApp.useInheritedMediaQuery} - /// Deprecated. This setting is not ignored. + /// Deprecated. This setting is now ignored. /// /// The widget never introduces its own [MediaQuery]; the [View] widget takes /// care of that.