Support brightness override in a11y page #9898
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements the VM service extension integration for overriding brightness in the accessibility controls. It defines the brightnessMode service extension, updates the AccessibilityController to listen to device-side brightness changes, and sends updates back to the VM service when changed via the DevTools UI. Additionally, it adds corresponding analytics constants and comprehensive tests. The reviewer raised a concern regarding potential feedback loops and redundant VM service calls when brightness changes originate from the device itself, suggesting a boolean guard to prevent unnecessary updates.
32aec8c to
cd275cb
Compare
kenzieschmoll
left a comment
There was a problem hiding this comment.
It looks like this PR is missing the UI code to add the dropdown. Can you include that in this PR?
|
@kenzieschmoll The UI code was merged in #9892, so this PR is just to add functions |
tracking issue: #9893
Screen.Recording.2026-07-16.at.13.41.32.mov
the ext.flutter.brightnessOverride service extension and VM service support to Flutter was added a while ago in PR #59571
Pre-launch Checklist
General checklist
///).Issues checklist
contributions-welcomeorgood-first-issuelabel.contributions-welcomeorgood-first-issuelabel. I understand this means my PR might take longer to be reviewed.Tests checklist
AI-tooling checklist
Feature-change checklist
release-notes-not-requiredlabel or left a comment requesting the label be added.packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md.If you need help, consider asking for help on Discord.