# Remove useInheritedMediaQuery

> The `useInheritedMediaQuery` property has been removed from the Flutter framework.




:::important
These breaking change docs are accurate, as of the release
under which they are published. Over time, the
workarounds described here might become inaccurate.
We don't, in general, keep these breaking change docs up
to date as of each release.

The [breaking change index file](/release/breaking-changes)
lists the docs created for each release.
:::


## Summary

The `useInheritedMediaQuery` properties in `WidgetsApp`, `MaterialApp`, and `CupertinoApp` were removed because these widget never introduced their own MediaQuery, the View widget takes care of that.

## Context

Historically, Flutter used `useInheritedMediaQuery` to determine whether a `WidgetsApp`, `MaterialApp`, or `CupertinoApp` should inherit the `MediaQuery` from its parent. This became redundant when `MediaQuery` inheritance became the default behavior.

## Migration guide

If your code previously used `useInheritedMediaQuery`, you can migrate it by deleting any usage of the property.

```dart diff
- useInheritedMediaQuery: true,
```

```dart diff
- useInheritedMediaQuery: false,
```

:::important
This migration isn't supported by `dart fix`.
:::

## Timeline

Landed in version: TBD<br>
In stable release: TBD

## References

API documentation:

* [`WidgetsApp`][]
* [`MaterialApp`][]
* [`CupertinoApp`][]


Relevant PRs:

* [PR 193146][]
* [PR 12970][]
* [PR 12969][]

[`WidgetsApp`]: https://api.flutter.dev/flutter/widgets/WidgetsApp-class.html
[`MaterialApp`]: https://pub.dev/documentation/material_ui/latest/material_ui/MaterialApp-class.html
[`CupertinoApp`]: https://pub.dev/documentation/cupertino_ui/latest/cupertino_ui/CupertinoApp-class.html
[PR 193146]: https://github.com/flutter/flutter/pull/193146
[PR 12970]: https://github.com/flutter/packages/pull/12970
[PR 12969]: https://github.com/flutter/packages/pull/12969
