Skip to content
Get started
Menu
Get started

Detail page property list

Transaction facts with optional linked values and subText. Variants: vertical, horizontal; pending, ready, empty, error. Values are PaymentDetailValue text or links with optional subText; extra actions are links in an overflow menu. A failed module uses warning tone because it is secondary content. Your app handles retry, Create and link destinations. Empty messages explain why and offer an action.

Payment detail properties with labels, amounts and references.Payment detail properties with labels, amounts and references.
Detail page property list
Payment detail properties with labels, amounts and references at 200 percent text. Part 1 of 2.Continued: Payment detail properties with labels, amounts and references at 200 percent text. Part 2 of 2.
200% text Shown in 2 images, top to bottom; each repeats the last few lines of the one before.
example/lib/screens/gallery_views.dart
PaymentDetailPagePropertyList(
title: 'Merchant',
pending: false,
items: [
const PaymentDetailProperty(
label: 'Name',
values: [PaymentDetailValue('Toko Contoh')],
),
PaymentDetailProperty(
label: 'Support',
values: [
PaymentDetailValue.link(
PaymentLink(
label: 'Help centre',
external: true,
onPressed: () {},
),
),
],
),
],
);

Variants: vertical, horizontal; pending, ready, empty, error.

Choose vertical for longer facts and horizontal for short values that fit beside their labels. Narrow and large-text layouts stack the content.

Situation Variant / composition Payment example
Merchant facts vertical Use a link-only value for support; place the module directly in DetailPage.

Use Detail page table for repeated attempts.

Use pending while facts load, an empty message when none are available, and a warning with retry when this supporting module fails.

Do: Use a link-only value for support; place the module directly in DetailPage.

Don’t: Wrap a titled property module in another titled module.

Use labels such as “Merchant” and “Reference”. Keep linked values descriptive and unavailable facts distinct from empty strings.

Keep fact labels with their values. Linked values and overflow actions need descriptive labels.

A single link-only value centers with its label; at large text it wraps.

Example transaction detail screen with synthetic dataExample transaction detail screen with synthetic data
Example: transaction detail

PaymentDetailPagePropertyList

class PaymentDetailPagePropertyList extends StatelessWidget · lib/src/pages/detail_page_property_list.dart

Property module with loading, empty and retry states.

ParameterTypeDefaultDescription
title:requiredString—Heading displayed above the content.
pending:requiredbool—Shows placeholders while the host loads content.
items:List<PaymentDetailProperty>const []Host facts rendered in order.
orientation:AxisAxis.verticalPreferred arrangement of labels and values.
onCreate:VoidCallback?—Host action for adding a detail record.
emptyMessage:PaymentEmptyMessage?—Explanation and optional recovery action for missing content.
errorText:String?—Safe error copy displayed with the affected content.
onRetry:VoidCallback?—Retries the failed host request.
extraActions:List<PaymentLink>const []Supporting actions in the module header.

PaymentDetailProperty

class PaymentDetailProperty · lib/src/pages/detail_page_property_list.dart

A labeled set of related values.

ParameterTypeDefaultDescription
label:requiredString—Visible name identifying this value or control.
values:requiredList<PaymentDetailValue>—Related values displayed together.
description:String?—Persistent explanation below the heading or label.

PaymentDetailValue

class PaymentDetailValue · lib/src/pages/detail_page_property_list.dart

One displayed detail value with optional secondary copy.

ParameterTypeDefaultDescription
textrequiredpositionalString?—Plain detail value; absent when a link is used.
subText:String?—Supporting copy below a detail value.
reference:boolfalseShows text as a reference or ID: monospace tabular text on the value edge, without a fill (D57).
onCopy:Future<bool> Function(String value)?—Host copy for text; adds a PaymentCopyButton whose glyph sits on the value edge.

PaymentDetailValue.link(…)

ParameterTypeDefaultDescription
linkrequiredpositionalPaymentLink?—Interactive detail value; absent for plain text.
subText:String?—Supporting copy below a detail value.

PaymentEmptyMessage

class PaymentEmptyMessage · lib/src/content/empty_message.dart

Empty-state explanation and an optional next action.

ParameterTypeDefaultDescription
titlerequiredpositionalString—What is empty.
message:String?—Why it is empty.
actionLabel:String?—Next action label.
onAction:VoidCallback?—Host action, supplied together with its label.
icon:IconDataIcons.inbox_outlinedSupporting visual cue.