checklist
Steps the user ticks off themselves.
A list to work through. checklist is for steps the user does and ticks off: restarting a modem, the documents to bring, the first week's tasks.
Ticks stay on the device, under the signed-in user, so a shared phone does not hand one person's progress to the next. When every step is ticked and the block has on_complete, a button offers what comes next; it is the user's to press.
Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.
Rendered natively by the Flutter SDK since 0.42.0 and the web SDK since 0.19.0. A build that does not declare it is never offered it.
Props
Every block also carries type and a required fallback_text of 1 to 300 characters.
| Prop | Type | Required | Constraints |
|---|---|---|---|
title | string | No | Up to 80 characters. |
items | array | Yes | 1 to 10 entries. |
items[].id | string | Yes | 1 to 64 characters. |
items[].title | string | Yes | 1 to 80 characters. |
items[].body | string | No | Up to 300 characters. |
items[].done | boolean | No | None |
items[].due_label | string | No | Up to 24 characters. |
on_complete | object | No | None |
on_complete.label | string | Yes | 1 to 40 characters. |
on_complete.reply_text | string | Yes | 1 to 500 characters. |
On the wire
{
"id": "blk_80",
"type": "checklist",
"fallback_text": "Three steps to get the modem back online.",
"props": {
"title": "Get back online",
"items": [
{ "id": "unplug", "title": "Unplug the modem for 30 seconds", "done": true },
{
"id": "dsl",
"title": "Check the DSL light is steady",
"body": "Steady green means the line is up; blinking means it is still connecting."
},
{ "id": "wifi", "title": "Restart your phone's Wi-Fi" }
],
"on_complete": {
"label": "Still offline",
"reply_text": "I did all three and I'm still offline"
}
}
}Interaction
A tap ticks or unticks a row; the server is told nothing. Items with done: true start ticked, and due_label is a small pill at the row's end. Once every row is ticked, the on_complete button appears under the list and asks its reply_text as the next question.
Accessibility
Each row is a checkbox named by its title, and announces whether it is ticked.