Unverified Commit a28f4e3a authored by Bruno Leroux's avatar Bruno Leroux Committed by GitHub

Fix textScalerOf and maybeTextScalerOf documentations (#139123)

## Description

This PR fixes an inversion on `MediaQuery.textScalerOf` and  `MediaQuery.maybeTextScalerOf `documentation.

## Related Issue

Fixes https://github.com/flutter/flutter/issues/139071

## Tests

Documentation only
parent 897c2f85
...@@ -1329,7 +1329,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> { ...@@ -1329,7 +1329,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> {
static double? maybeTextScaleFactorOf(BuildContext context) => _maybeOf(context, _MediaQueryAspect.textScaleFactor)?.textScaleFactor; static double? maybeTextScaleFactorOf(BuildContext context) => _maybeOf(context, _MediaQueryAspect.textScaleFactor)?.textScaleFactor;
/// Returns the [MediaQueryData.textScaler] for the nearest [MediaQuery] /// Returns the [MediaQueryData.textScaler] for the nearest [MediaQuery]
/// ancestor or null if no such ancestor exists. /// ancestor or [TextScaler.noScaling] if no such ancestor exists.
/// ///
/// Use of this method will cause the given [context] to rebuild any time that /// Use of this method will cause the given [context] to rebuild any time that
/// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery] /// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery]
...@@ -1339,7 +1339,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> { ...@@ -1339,7 +1339,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> {
static TextScaler textScalerOf(BuildContext context) => maybeTextScalerOf(context) ?? TextScaler.noScaling; static TextScaler textScalerOf(BuildContext context) => maybeTextScalerOf(context) ?? TextScaler.noScaling;
/// Returns the [MediaQueryData.textScaler] for the nearest [MediaQuery] /// Returns the [MediaQueryData.textScaler] for the nearest [MediaQuery]
/// ancestor or [TextScaler.noScaling] if no such ancestor exists. /// ancestor or null if no such ancestor exists.
/// ///
/// Use of this method will cause the given [context] to rebuild any time that /// Use of this method will cause the given [context] to rebuild any time that
/// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery] /// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment