Flutter Design Systems Galleries

Number field

A number field lets someone adjust a quantity in predictable steps. Set a meaningful lower bound, such as one copy of a document.

About this look Stint app Appliance gallery

Choose a quantity

Start with two copies. Add a copy, then lower the count to one and try to decrease it again.

Flutter preview Open preview
semanticLabel
Identifies the quantity being adjusted.
min
Smallest quantity allowed.
max
Largest quantity allowed.
value
Current number of copies.
onChanged
Keeps the field and the total in sync.

Shared behaviour

  • Keyboard and focus. Tab to the control. Depending on the look, use its increase and decrease actions or the Up and Down arrows on the value.
  • Screen readers. Read the current quantity and the names of its adjustment controls. The total below the field also reports the number of copies.
  • Direction and type. The adjustment controls follow the look’s reading order. Try the phone frame with larger type to inspect the number and its neighbours.
Read the ui_core contract