-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fix a Slider widget accessibility bug
#102129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gspencergoog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the problem with the current label?
Will information about the range labels be missing from the semantics if you do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// when the slider is active and the [SliderThemeData.showValueIndicator] | |
| /// is satisfied. | |
| /// when the slider is active and [SliderThemeData.showValueIndicator] | |
| /// is true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't a bool property: )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// the [SliderThemeData.showValueIndicator] is satisfied. | |
| /// [SliderThemeData.showValueIndicator] is true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is removed, then we no longer need to pass label to this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
As the reference issue report, the android talkback will read 'value + label + slider',such as ' 50% 50 slider '. I have tested the native slider widget, and the talkback doesn't read labels info out. The semantics label doesn't apply here,right? |
gspencergoog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Fixes #101868
The
Slider.labelshould not write toSemanticsConfiguration.label,I check the originally introduced PR https://github.com/flutter/flutter/pull/58535/files which is more like a mistake.
Also, I test the Android native talkback, it does not read the label info out.
In addition, improve the docs about when the label will appear.