Flutter Design Systems Galleries

Slider

A slider changes one value along a bounded track. Use it for adjustments people can judge as they move, such as sound level.

About this look Stint app Appliance gallery

Set the volume

Move the thumb and watch the volume readout change in five-point steps.

Flutter preview Open preview
value
Current volume on the track.
max
Highest volume the thumb can reach.
divisions
Number of equal intervals on the track.
semanticLabel
Names the volume control.
valueText
Announces the volume as a percentage.
onChanged
Receives the new volume.

Shared behaviour

  • Keyboard and focus. Focus the slider and use the arrows to adjust the volume. Try the same keys again in RTL.
  • Screen readers. Read the control’s volume label and value, then the percentage printed beside the example.
  • Direction and type. At 200% the number grows with the text. Switch direction to see where the low end of the track sits.
Read the ui_core contract