Skip to content

Flutter accessibility: there is no radioButton on Semantics #80182

@khsbory

Description

@khsbory

Hello.
I'm Hyongsop Kim from Korea and accessibility consultant.
I'm testing flutter accessibility API and I found out that flutter supports Semantics to support custom widget accessibility.
By the way, I cannot find RadioButton within Semantics.
If I use original Radio class with RadioListTile, TalkBack says the object role as RadioButton.
It's very good.
However if I use custom RadioButton, there is no way to let TalkBack speak the role as RadioButton.
If TalkBack doesn't speak it as RadioButton, screen reader users hard to distinguish that these objects can be selected only one object and not possible multi check object.
Of course if I use native Radio class, there is no problem.
But in some cases, we have to use custom Radio widget.
So I hope that add RadioButton in Semantics so that TalkBack speak the role as RadioButton even if we use custom Radio widget.
Of course, I know that iOS VoiceOver doesn't support RadioButton.
So in case of iOS build, you can make RadioButton Semantics as button trait in iOS accessibility API.
And if you add RadioGroup semantics, VoiceOver will speak focused button number of total RadioButton number.
For example, selected, orange, button, 2 of 3.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions