update a11y for material slider (#18005)

This commit is contained in:
Jonah Williams
2018-06-07 15:41:35 -07:00
committed by GitHub
parent 3bc906d372
commit 0891a1136b
4 changed files with 186 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ class _SliderDemoState extends State<SliderDemo> {
new Slider(
value: _discreteValue,
min: 0.0,
max: 100.0,
max: 200.0,
divisions: 5,
label: '${_discreteValue.round()}',
onChanged: (double value) {
@@ -198,8 +198,9 @@ class _SliderDemoState extends State<SliderDemo> {
child: new Slider(
value: _discreteValue,
min: 0.0,
max: 100.0,
max: 200.0,
divisions: 5,
semanticFormatterCallback: (double value) => value.round().toString(),
label: '${_discreteValue.round()}',
onChanged: (double value) {
setState(() {