Repository navigation
[A11y] Connect the Screen Reader Debugger switch to the app - #10114
Open
victorsanni wants to merge 1 commit into
Open
victorsanni wants to merge 1 commit into
victorsanni wants to merge 1 commit into
Conversation
The Screen Reader Debugger switch of the Accessibility page now shows the semantics debugger in the connected app, through the ext.flutter.showSemanticsDebugger service extension. The switch goes through ServiceExtensionManager, so it shows the state that the app reports, follows the changes that other tools make, and the debugger is turned on again after a hot restart. While the app has not registered the extension, the switch is disabled, its label is dimmed and a message below it says why. The extension is referred to by name until the Flutter version that DevTools builds with has WidgetsServiceExtensions.showSemanticsDebugger. Part of flutter#9893
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
11 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #9893. Follows #10065.
This connects the Screen Reader Debugger switch on the Accessibility page to the app. The switch now shows the semantics debugger in the app, so that a developer can see what the app reports to a screen reader. It goes through
ext.flutter.showSemanticsDebugger, which flutter/flutter#197822 adds.That PR should land first, because the extension's name can still change in its review. DevTools refers to the extension by name, because the Flutter version that it builds with does not have
WidgetsServiceExtensions.showSemanticsDebuggeryet.On the page:
The switch goes through
ServiceExtensionManager, as brightness does. The manager only tracks the extensions inserviceExtensionsAllowlist, so the extension is added there, indevtools_app_shared.Caveats:
ServiceExtensionManagerturns the debugger on again. The text scale, bold text and high contrast overrides do not come back yet.ServiceExtensionManagerapplies them. So if the debugger was on before a hot restart that DevTools was not connected for, connecting turns it on again. The other extensions that go through the manager, such as the performance overlay, do the same today.accessibilityexperiment flag.Controller tests cover availability, the state that the app reports, changes from other tools, hot restarts, and a change that the app does not answer. Widget tests cover the disabled switch with its message, the pending value and a narrow pane. The
devtools_testfake ofServiceExtensionManagercan now leave calls unanswered.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.