Flutter Design Systems Galleries

Segmented control

A segmented control offers a small set of mutually exclusive values. Keep the options short enough to compare at a glance.

About this look Stint app Appliance gallery

Choose a reporting period

Switch between Week and Month. The line below names the period included in the report.

Flutter preview Open preview
segments
Available reporting periods in reading order.
value
Period currently selected.
onChanged
Receives the chosen period.

Shared behaviour

  • Keyboard and focus. Tab to the options, then follow their focus indicator to change the period. Some looks move between segments with the arrows.
  • Screen readers. Read the segment names and inspect which option is selected. The example also prints the chosen period.
  • Direction and type. In RTL the options follow reading order. Try the phone width with larger text to inspect both labels.
Read the ui_core contract