Flutter Design Systems Galleries

Data table

Use a data table when readers need to work with the records they are comparing. Sorting a numeric column should order its values by size.

About this look Stint app Appliance gallery

Sort the stock list

Sort by Units to put the smallest quantity first, then reverse the order. Select a row or move to the next page to inspect the remaining record.

AppliancePagination uses one-based page numbers. The example connects it to the table controller’s zero-based page index.

Flutter preview Open preview
controller
Holds the rows, columns, sorting, selection and current page.
cellText
A cell's words.
selectable
Whether rows are selected (a box at each row's start).
onActivate
Opens a row (Enter, or a press when it does not select).
rowLabel
A row's name for its box, for a screen reader.
style
Its style, over ApplianceThemeData.tableStyle.

Shared behaviour

  • Keyboard and focus. Tab through the sortable headers and use Enter or Space. Try the row and paging controls in the order the look supplies.
  • Screen readers. Read the header’s sort state, then follow the first item and its quantity. Compare the announced row state before and after selection.
  • Direction and type. RTL changes where each column starts. Try sorting at phone width and 200% to check how headers and values fit.
Read the ui_core contract