forked from firka/flutter
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
This commit is contained in:
@@ -1329,7 +1329,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> {
|
||||
static double? maybeTextScaleFactorOf(BuildContext context) => _maybeOf(context, _MediaQueryAspect.textScaleFactor)?.textScaleFactor;
|
||||
|
||||
/// 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
|
||||
/// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery]
|
||||
@@ -1339,7 +1339,7 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> {
|
||||
static TextScaler textScalerOf(BuildContext context) => maybeTextScalerOf(context) ?? TextScaler.noScaling;
|
||||
|
||||
/// 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
|
||||
/// the [MediaQueryData.textScaler] property of the ancestor [MediaQuery]
|
||||
|
||||
Reference in New Issue
Block a user