Skip to content
Get started
Menu
Get started

Status header

StatusHeader is the top of a status screen: a thin band, then an icon beside the state in words. Band shape, tone, icon and words are four signals, so a hatched band (the outcome is not known yet) never reads as a plain “pending”.

Pass the status from your own payment snapshot; the header never infers it.

Payment outcome headers with semantic icons, labels and status bands.Payment outcome headers with semantic icons, labels and status bands.
Light and dark variants
lib/src/receipt/payment_receipt.dart
StatusHeader(
tone: StatusTone.success,
icon: Icons.check_circle_outline,
title: l10n.statusSucceededTitle,
);

Variants: neutral, info, success, warning, danger; hatched unknown.

The default. A solid band marks a settled state (success, failed) or one that is waiting on something known, such as a transfer the person still has to make.

hatched: true draws diagonal stripes, like caution tape. Use it only when the payment was sent and no result has arrived: the outcome is unknown, and the person must not pay again. The difference from “waiting” is in shape and words as well as in color.

StatusBand is the 6 px band on its own, for a layout that puts the title elsewhere. It takes the same tone and hatched.

const StatusBand(tone: StatusTone.success);
Situation Variant / composition Payment example
Payment outcome hatched unknown Use an explicit not-confirmed label and hatching when the host lacks an outcome.

Use Badge for a short status inside a row.

The host chooses the label, tone and band pattern. Use a hatched band for an unknown result and a solid band for pending.

Do: Use an explicit not-confirmed label and hatching when the host lacks an outcome.

Don’t: Show an unknown payment as success or failure.

  • The title is the state in plain words: “Payment received”, “Payment failed”, “Result not confirmed yet”.
  • Do not use “Processing” for an unknown outcome. Say that the result is not confirmed, and say what to do (see Payment attempt and status).
  • Pick an icon that agrees with the title.
  • The title is marked as a header for screen readers. The band is decorative and excluded from semantics.
  • The title scales with the text and wraps. The icon grows up to 1.6× and stays centered on the title’s first line.
Example transaction detail screen with synthetic dataExample transaction detail screen with synthetic data
Example: transaction detail

StatusHeader

class StatusHeader extends StatelessWidget · lib/src/foundation/primitives.dart

The top of a status screen: a band, then an icon beside the state in words. Band shape, tone, icon and words are four signals, so a hatched band (the outcome is not known yet) never reads as a plain "pending".

The title scales with the text and may wrap. The icon scales up to 1.6× and centers on the title's first line.

ParameterTypeDefaultDescription
tone:requiredStatusTone——
icon:requiredIconData——
title:requiredString——
hatched:boolfalseMarks an outcome that is not known yet.

StatusBand

class StatusBand extends StatelessWidget · lib/src/foundation/primitives.dart

Thin band above a status title. A solid band marks a settled or waiting state; a hatched band marks an outcome that is not known yet, so the two warning states differ in shape as well as in words, not only in color.

ParameterTypeDefaultDescription
tone:requiredStatusTone——
hatched:boolfalse—