Task list
Host-owned KYC setup tasks. Variants: notStarted, inProgress, blocked, complete. Distinct marks and spoken status distinguish progress without relying on color. Complete tasks hide their child tasks. The host decides every status.



PaymentTaskList( items: [ PaymentTaskListItem( title: 'Identity', status: PaymentTaskStatus.complete, ), PaymentTaskListItem( title: 'Documents', status: PaymentTaskStatus.inProgress, subTasks: [ PaymentTaskListItem( title: 'KTP', status: PaymentTaskStatus.complete, ), PaymentTaskListItem(title: 'Selfie'), ], ), PaymentTaskListItem( title: 'Review', status: PaymentTaskStatus.blocked, ), ], );Variants
Section titled “Variants”Variants: notStarted, inProgress, blocked, complete.
The connector
Section titled “The connector”A thin line joins each top-level task’s mark to the next. It says only that the tasks run in this order. It looks the same whatever the status, so read progress from the marks and their spoken status, never from the line. Sub-tasks have no connector.
States and content
Section titled “States and content”Show the host-defined task sequence. A blocked task needs a reason and a permitted next action; complete tasks hide their children.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| KYC progress | inProgress | The host decides status; completed steps may offer edit actions. |
Use Step indicator for a short linear merchant checkout sequence.
States
Section titled “States”The host sets notStarted, inProgress, blocked or complete. Completing a task hides its child tasks; upload completion alone does not verify identity.
Do and don’t
Section titled “Do and don’t”Do: The host decides status; completed steps may offer edit actions.
Don’t: Mark a task complete just because its widget mounted.
Content guidelines
Section titled “Content guidelines”Use task names such as “Your details” and “ID photo”. Put the correction needed in the blocked reason, not just “Error”.
Accessibility
Section titled “Accessibility”Marks and spoken status distinguish tasks without relying on color. Completed tasks hide their children.
In the example app
Section titled “In the example app”

PaymentTaskList
class PaymentTaskList extends StatelessWidget · lib/src/content/task_list.dart
Sequential setup tasks with distinct status marks.
A 2 dp connector joins each top-level task's mark to the next one. It only says the tasks run in this order: it looks the same for every status, so progress is read from the marks and their spoken status, never from the line. Sub-tasks have no connector (#62).
| Parameter | Type | Default | Description |
|---|---|---|---|
items:required | List<PaymentTaskListItem> | — | Top-level tasks, each with at most one level of sub-tasks. |
PaymentTaskListItem
class PaymentTaskListItem · lib/src/content/task_list.dart
One task and its host-defined status.
| Parameter | Type | Default | Description |
|---|---|---|---|
title:required | String | — | Task name. |
status: | PaymentTaskStatus | PaymentTaskStatus.notStarted | Host-owned progress state. |
onPressed: | VoidCallback? | — | Optional host action. |
subTasks: | List<PaymentTaskListItem> | const [] | One level of child tasks; hidden when complete. |
PaymentTaskStatus
enum PaymentTaskStatus · lib/src/content/task_list.dart
Host-owned task progress.
| Value | Description |
|---|---|
notStarted | Work has not begun. |
inProgress | Work is underway. |
blocked | Work requires intervention. |
complete | Work is complete. |