mirror of
https://github.com/flutter/flutter
synced 2024-10-05 15:59:49 +00:00
Remove deprecated MediaQuery.boldTextOverride (#143960)
https://github.com/flutter/flutter/issues/143956
This commit is contained in:
parent
94855a964c
commit
ccf9c15071
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue