Remove deprecated MediaQuery.boldTextOverride (#143960)

https://github.com/flutter/flutter/issues/143956
This commit is contained in:
Michael Goderbauer 2024-02-22 16:06:24 -08:00 committed by GitHub
parent 94855a964c
commit ccf9c15071
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1579,20 +1579,6 @@ class MediaQuery extends InheritedModel<_MediaQueryAspect> {
/// {@macro flutter.widgets.media_query.MediaQuery.dontUseOf}
static bool boldTextOf(BuildContext context) => maybeBoldTextOf(context) ?? false;
/// Returns the [MediaQueryData.boldText] accessibility setting for the
/// nearest [MediaQuery] ancestor or false, if no such ancestor exists.
///
/// Use of this method will cause the given [context] to rebuild any time that
/// the [MediaQueryData.boldText] property of the ancestor [MediaQuery]
/// changes.
///
/// Deprecated in favor of [boldTextOf].
@Deprecated(
'Migrate to boldTextOf. '
'This feature was deprecated after v3.5.0-9.0.pre.'
)
static bool boldTextOverride(BuildContext context) => boldTextOf(context);
/// Returns the [MediaQueryData.boldText] accessibility setting for the
/// nearest [MediaQuery] ancestor or null, if no such ancestor exists.
///