[Material] Add focus, highlight, and keyboard shortcuts to Slider#53945
[Material] Add focus, highlight, and keyboard shortcuts to Slider#53945fluttergithubbot merged 23 commits intoflutter:masterfrom
Conversation
rami-a
left a comment
There was a problem hiding this comment.
LGTM with some questions/comments
| ]); | ||
| }); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Seems like the new line got removed
|
I am trying to use slider in a video player on Android TV app, testing on Nvidia Shield TV |
|
For text fields, we had to add the ignoreTextFields option to the DirectionalFocusIntent to make text fields allow DPAD movement vertically. Perhaps what we really need is a UI mode that indicates that an app wants to use DPAD navigation instead of normal navigation modes. |
|
Actually, after discussing it with @goderbauer, I think I'm going to try and implement an |
|
@gspencergoog That sounds like a good idea. Do we have an idea of which components would need to update (and consume this InheritedWidget)? @andraskende Can you open a separate ticket for adding proper DPAD support for the Slider? |
|
For various different reasons, I think this is the list:
|
|
@gspencergoog on a mobile device, the slider can be correctly navigated with an external keyboard now, but it doesn't receive focus with TalkBack yet. |

Description
Related Issues
closes #48905
Tests
I added the following tests:
slider.dart:
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.