Skip to content

Directionality widget does not set directionality on SemanticsNode #16835

@yjbanov

Description

@yjbanov

Directionality widget does not set directionality on SemanticsNode. A workaround is to wrap the Directionality widget in a Semantics widget with textDirection set accordingly. However, this is not always possible. For example, WidgetsApp sets Directionality for you, and it doesn't give you a chance to inject a Semantics widget. Another issue is that the additional Semantics widget will cause a new SemanticsNode to be inserted in the tree. It would be desirable that the effect of Directionality is a simple flip of the textDirection field on the nearest parent SemanticsNode.

/cc @goderbauer

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions