Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support MediaQuery's highContrast property on all platforms #168288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
12people opened this issue May 4, 2025 · 2 comments
Open

Support MediaQuery's highContrast property on all platforms #168288

12people opened this issue May 4, 2025 · 2 comments
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) c: proposal A detailed proposal for a change to Flutter framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list team-framework Owned by Framework team triaged-framework Triaged by Framework team

Comments

@12people
Copy link

12people commented May 4, 2025

Use case

Right now, based on the official Flutter docs, the MediaQuery.highContrastOf(context) property is available only for iOS.

Having tested it on macOS, this property seems to always return false there, even though the two platforms are quite similar. Based on the documentation, I assume all platforms outside of iOS also always return false.

Proposal

It'd be great if Flutter recognized the system's high contrast settings on all supported platforms, including Linux, macOS, and Windows.

@danagbemava-nc danagbemava-nc added in triage Presently being triaged by the triage team framework flutter/packages/flutter repository. See also f: labels. a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) c: proposal A detailed proposal for a change to Flutter team-framework Owned by Framework team and removed in triage Presently being triaged by the triage team labels May 5, 2025
@justinmc justinmc added P2 Important issues not at the top of the work list triaged-framework Triaged by Framework team labels May 6, 2025
@justinmc
Copy link
Contributor

justinmc commented May 6, 2025

I agree that Flutter should support this on all platforms where it's possible. Do we know for sure which platforms this setting is supported on natively? Looks like @12people you've checked macOS?

@12people
Copy link
Author

12people commented May 7, 2025

Yup, only tried macOS so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) c: proposal A detailed proposal for a change to Flutter framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list team-framework Owned by Framework team triaged-framework Triaged by Framework team
Projects
None yet
Development

No branches or pull requests

3 participants