Skip to content

[Accessibility] Focus position are reset when routing between pages #93926

@luomo-pro

Description

@luomo-pro

The focus of the a11y is losing state after popped from pages.

Summary

When we're using talkback in native Android applications, jump to a new page and return, and the focus of talkback will remain the previous focus.
For example, when there are three buttons on the home page, click the second button to jump to another page. Then I press the back button to return to the previous page. The primary focus will be on the second button.

On the flutter, I found that after returning to the previous page, the focus was on the first button. It doesn't focus on the previous position, that is, the second button, like the native Android.

This should be because the flutter does not have the correct accessibility event notification, so the talkback cannot determine the position of the previous focus.

Environment

  • Flutter (Channel beta, 2.7.0-3.1.pre)
  • Talkback 9.1
  • Android 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions