Flutter Design Systems Galleries

Switch

A switch changes a setting immediately. Use a label that names the setting and keep it stable when the value changes.

About this look Stint app Appliance gallery

Set reminders

Turn reminders on, then off. The message below the switch shows the current setting.

Flutter preview Open preview
semanticLabel
Names the setting in both states.
value
Whether reminders are on.
onChanged
Applies the new setting immediately.

Shared behaviour

  • Keyboard and focus. Tab to the switch and press Space. The same control turns the setting back off.
  • Screen readers. Read the Reminders label and the current state. The message after the switch spells out the resulting setting.
  • Direction and type. Compare where the thumb rests in LTR and RTL. The message can wrap when the text size increases.
Read the ui_core contract