Skip to content

Remove deprecated useInheritedMediaQuery - #193146

Closed
AbdeMohlbi wants to merge 2 commits into
flutter:masterfrom
AbdeMohlbi:remove_useInheritedMediaQuery
Closed

AbdeMohlbi wants to merge 2 commits into
flutter:masterfrom
AbdeMohlbi:remove_useInheritedMediaQuery

Conversation

@AbdeMohlbi

@AbdeMohlbi AbdeMohlbi commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

blocked on:

Pre-launch Checklist

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

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

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.

@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 22, 2026
@github-actions

Copy link
Copy Markdown

This pull request contains changes to Material or Cupertino, which are currently frozen in this repository.

Changes should be made in material_ui and/or cupertino_ui in the flutter/packages repository.

Please refer to #188444 for instructions.

@github-actions github-actions Bot added p: material_ui material_ui package in flutter/packages f: cupertino labels Sep 22, 2026
@AbdeMohlbi

AbdeMohlbi commented Sep 22, 2026 •

Copy link
Copy Markdown
Member Author

This pull request contains changes to Material or Cupertino, which are currently frozen in this repository.

Changes should be made in material_ui and/or cupertino_ui in the flutter/packages repository.

Please refer to #188444 for instructions.

i am aware see flutter/packages#12969, if the changes were not also made in the framework users will still use useInheritedMediaQuery from flutter/material or flutter/cupertino.

@AbdeMohlbi AbdeMohlbi changed the title Remove unused useInheritedMediaQuery 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 October 1, 2026 08:31
@AbdeMohlbi AbdeMohlbi added the CICD Run CI/CD label Oct 1, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the deprecated 'useInheritedMediaQuery' parameter and field from 'CupertinoApp', 'MaterialApp', and 'WidgetsApp', as well as its associated tests and usages across the test suite. There are no review comments, and I have no feedback to provide.

@dkwingsmt

dkwingsmt commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

From triage: I think we should not remove the deprecated properties from material and cupertino since the libraries will be removed soon. Instead this PR should be trimmed to only remove the properties from widgets. (I'll leave the decision to the framework triage)

@AbdeMohlbi
AbdeMohlbi marked this pull request as draft October 12, 2026 19:00
@flutter-dashboard

Copy link
Copy Markdown

This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@AbdeMohlbi

Copy link
Copy Markdown
Member Author

seems the plans have changed... , thanks @dkwingsmt for you efforts.

@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 f: cupertino framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants