ReferenceComponents

item_list

Tappable rows with a thumbnail and a trailing value.

A list of things, each of which can be opened. item_list is the answer to "show me my orders", "which sizes are in stock", "what did I buy last month". A row per item, a value on the right, and a tap that opens the item into its detail.

It is the densest block in the catalog that is still comfortable to hit with a thumb.

Aero Glide 2, size 43Order 1042 · out for delivery
$129
Court Low, size 42Order 1039 · delivered 12 Aug
$95
Trail Circuit, size 44Order 1017 · delivered 2 Jul
$149

Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.

Rendered natively by the Flutter SDK and the Web SDK, both since 0.1.0.

When not to use it

Do not use it to browse products. A list row gives an image 40pt and no room for a badge; product_cards exists for the case where the picture is doing the selling.

Do not use it for numbers that need comparing across columns, which is table, and do not use it for a sequence of states over time, which is order_tracker.

Props

Every block also carries type and a required fallback_text of 1 to 300 characters.

PropTypeRequiredConstraints
itemsarrayYes1 to 20 entries.
items[].image_urlstringNohttps only.
items[].titlestringYes1 to 120 characters.
items[].subtitlestringNoUp to 200 characters.
items[].trailingstringNoUp to 40 characters. Rendered with tabular figures.
items[].actionactionNo{ kind: "reply", text } or { kind: "open_url", url } or { kind: "navigate", route } or { kind: "call", phone } or { kind: "copy", text } or { kind: "add_to_calendar", title, starts_at }. See Actions. On an answer page every row opens its detail, and a reply here is the question that detail answers; an open_url opens the link instead. On a detail page, omit it and the row is not tappable.
items[].amountobjectNoNone
items[].amount.valuestringYes1 to 30 characters.
items[].amount.tonepositive | negative | neutralNoNone
items[].date_labelstringNoUp to 24 characters.
items[].statusobjectNoNone
items[].status.labelstringYes1 to 24 characters.
items[].status.tonesuccess | warning | error | neutralNoNone
items[].groupstringNoUp to 40 characters.
items[].highlightbooleanNoNone
items[].rankintegerNo1 to 999.
items[].file_typepdf | csv | image | docNoNone

On the wire

{
  "id": "blk_03",
  "type": "item_list",
  "fallback_text": "Two recent orders: 1042 and 1039.",
  "props": {
    "items": [
      {
        "image_url": "https://cdn.example.com/aero-glide-2.jpg",
        "title": "Aero Glide 2, size 43",
        "subtitle": "Order 1042 · out for delivery",
        "trailing": "$129",
        "action": {
          "kind": "reply",
          "text": "Track order 1042"
        }
      },
      {
        "image_url": "https://cdn.example.com/court-low.jpg",
        "title": "Court Low, size 42",
        "subtitle": "Order 1039 · delivered 12 Aug",
        "trailing": "$95",
        "action": {
          "kind": "reply",
          "text": "Return order 1039"
        }
      }
    ]
  }
}

Interaction

On an answer page a row opens into its detail: a sheet slides up with the row's picture, title and value at once, then the detail as it arrives. A reply action's text becomes the question the detail asks. A row whose action is a link opens the link instead. On a detail page a row does what its action says, and a row without one is plain content: no press response, no button role. An action can be any kind the build declares; see Actions.

Records

Up to 20 rows; past 8 the rest fold under a Show more. amount replaces trailing, and its tone reads as a sign. date_label sits beside the title, status is a small pill, consecutive rows with the same group share one heading, rank adds a number column, highlight marks the user's own row, and file_type draws a document badge in place of the picture. Since Flutter 0.40.0 and Web 0.17.0.

States

StateWhat the SDK draws
LoadingThree rows of thumbnail plus two text bars, at the real row height.
EmptyAn empty items array renders fallback_text inside the plate rather than a 2pt bordered sliver.
Image brokenThe thumbnail slot holds a sunk rectangle with a broken-image glyph. It never leaves a silent grey square that cannot be told apart from a bug.

Accessibility

fallback_text should say how many rows there are and what they are, not repeat every one: "Two recent orders: 1042 and 1039." Each row announces its own content.