Set highContrast value from AccessibilityFeatures into MediaQueryData#48811
Set highContrast value from AccessibilityFeatures into MediaQueryData#48811fluttergithubbot merged 3 commits intoflutter:masterfrom miquelbeltran:mb-highcontrast-mediaquerydata
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
This is waiting on a few changes to land first. |
|
Looks like the blocking engine PR was submitted (flutter/engine#15343). Is this one ready to move forward? Also, is it possible to add a test for this? |
|
Hi @goderbauer I looked into the possibility to add tests covering this code change, but I didn't see it done for the other |
|
Hey @miquelbeltran, This PR will need to be updated with the latest from master. should provide the appropriate coverage for this change. Several of the tests in that file make sure the property works as intended with the expected values. Let me know if that is helpful in creating tests for this. :) |
|
Thanks for the hint @Piinks! I added the |
|
While you are here, can you re-apply the change to the This has been a tricky change to land in a non-breaking way, and while you were at it you made it easier for others that will make changes like this in the future. Thanks for this. It's just about ready. :) |

Description
Part of the efforts to fix the issue #48418 split in a new PR as suggested by @Piinks in #48486
The
highContrastproperty is going to be added to the classAccessibilityFeaturesin the PR: flutter/engine#15343Here, I set it to the
MediaQueryDataclass so it can be used by Flutter developers by querying:MediaQuery.of(context).highContrastDesign document: https://flutter.dev/go/cupertino-increase-contrast
Related Issues
Blocked by: flutter/engine#15343
Fixes: #48418
Related to: #48486
Tests
Tests are covered in #48486
Checklist
Checklist covered in #48486
Breaking Change
Change info covered in #48486