Skip to content

[material_ui] Remove deprecated useInheritedMediaQuery - #12969

Closed
AbdeMohlbi wants to merge 3 commits into
flutter:mainfrom
AbdeMohlbi:abmohlbi_remove_deprecated_useInheritedMediaQuery
Closed

AbdeMohlbi wants to merge 3 commits into
flutter:mainfrom
AbdeMohlbi:abmohlbi_remove_deprecated_useInheritedMediaQuery

Conversation

@AbdeMohlbi

@AbdeMohlbi AbdeMohlbi commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

blocked on:

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Sep 22, 2026
@AbdeMohlbi AbdeMohlbi added the CICD Run CI/CD label Sep 22, 2026
@AbdeMohlbi AbdeMohlbi changed the title Abmohlbi remove deprecated use inherited media query Remove deprecated useInheritedMediaQuery Sep 22, 2026
@AbdeMohlbi AbdeMohlbi changed the title Remove deprecated useInheritedMediaQuery [material_ui] Remove deprecated useInheritedMediaQuery Sep 22, 2026
sfshaza2 pushed a commit to flutter/website that referenced this pull request Sep 24, 2026
…ion guide (#13916)

This change adds `useInheritedMediaQuery` removal breaking change entry
and migration guide.

unblocks :
- flutter/packages#12970
- flutter/packages#12969
- flutter/flutter#193146

_PRs or commits this PR depends on (if any):_

## Presubmit checklist

- [x] If you are unwilling, or unable, to sign the CLA, even for a
_tiny_, one-word PR, please file an issue instead of a PR.
- [x] If this PR is not meant to land until a future stable release,
mark it as draft with an explanation.
- [x] This PR follows the [Google Developer Documentation Style
Guidelines](https://developers.google.com/style)—for example, it doesn't
use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person
pronouns).
- [x] This PR uses [semantic line
breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks)
  of 80 characters or fewer.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@AbdeMohlbi
AbdeMohlbi marked this pull request as ready for review September 24, 2026 18:07
gemini-code-assist[bot]

This comment was marked as resolved.

@QuncCccccc QuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution! Do we have a dart fix for this?

Also wanted to ask @justinmc and @Piinks whether it is okay to remove this deprecated api.

@AbdeMohlbi

Copy link
Copy Markdown
Member Author

Thanks a lot for your contribution! Do we have a dart fix for this?

Not at the moment

@Piinks

Piinks commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Breaking changes in material_ui and cupertino_ui will be batched. They require bumping the major version, which we only want to do as frequently as once a quarter to reduce disruption to the ecosystem. Let's add this to flutter/flutter#190941

@AbdeMohlbi
AbdeMohlbi marked this pull request as draft October 12, 2026 18:59
@AbdeMohlbi AbdeMohlbi closed this Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants