Skip to content
Get started
Menu
Get started

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.

Verification tasks with completed, current, nested and blocked steps.Verification tasks with completed, current, nested and blocked steps.
Task list
Verification tasks with completed, current, nested and blocked steps at 200 percent text.
200% text
example/lib/screens/gallery_content.dart
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: notStarted, inProgress, blocked, complete.

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.

Show the host-defined task sequence. A blocked task needs a reason and a permitted next action; complete tasks hide their children.

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.

The host sets notStarted, inProgress, blocked or complete. Completing a task hides its child tasks; upload completion alone does not verify identity.

Do: The host decides status; completed steps may offer edit actions.

Don’t: Mark a task complete just because its widget mounted.

Use task names such as “Your details” and “ID photo”. Put the correction needed in the blocked reason, not just “Error”.

Marks and spoken status distinguish tasks without relying on color. Completed tasks hide their children.

Example kyc onboarding screen with synthetic dataExample kyc onboarding screen with synthetic data
Example: kyc onboarding

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).

ParameterTypeDefaultDescription
items:requiredList<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.

ParameterTypeDefaultDescription
title:requiredString—Task name.
status:PaymentTaskStatusPaymentTaskStatus.notStartedHost-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.

ValueDescription
notStartedWork has not begun.
inProgressWork is underway.
blockedWork requires intervention.
completeWork is complete.