Detail page
Detail of a transaction, with header actions and host breadcrumbs. Do not nest in FullPageView: DetailPage owns its scroll. At 840 dp primary and secondary modules share space 2:1; narrower layouts stack primary before secondary. Narrow breadcrumbs show only the immediate parent, spoken as Back to that label. Pending preserves the structural header and replaces modules with skeletons.



PaymentDetailPage( title: 'Rp102.500 to Toko Contoh', description: 'Paid with BCA virtual account · 1 Oct 2026', breadcrumbs: [ PaymentBreadcrumb(label: 'Transactions', onPressed: () {}), ], actions: [ button('View receipt'), button('Report a problem', variant: PaymentButtonVariant.quiet), button('Request refund', variant: PaymentButtonVariant.destructive), ], primary: [property(), attempts()], secondary: [ 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: () {}, ), ), ], ), ], ), ], );Header and footer (D59a, D62)
Section titled “Header and footer (D59a, D62)”- Priority action at the bottom.
primaryActionpins in the footer, full width on phones, with at most one quietsecondaryActionunder it. Transaction detail uses “Lihat struk” as the primary and “Laporkan masalah” as the quiet action. - Header actions are navigation. On phones one entry in
actionsshows on the title row as “Label ›”; two or more go behind ⋮, which opens the action sheet with destructive items last. Wide headers keep hug buttons under the title. - Breadcrumb. On phones only the parent shows, with its chevron hanging outside the column so the glyph starts on the title edge, one gap above the title. Drop it when the app bar already has a back button, so the screen has one back control.
- Width. One column is capped at 640 dp from 600 dp; with
secondary, two columns from 840 dp, capped at 1040 dp.


Variants
Section titled “Variants”
Variants: primary, primary with secondary modules.
States and content
Section titled “States and content”Use primary modules for payment facts and secondary modules for supporting details. At 840 dp the two columns share space 2:1; narrower layouts stack them.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| One transaction | primary with secondary modules | Payment and attempts are primary; merchant support is secondary. |
Use Overview page for a non-scrolling dashboard composition.
States
Section titled “States”Pending keeps the page header and replaces modules with skeletons. The host supplies the module data and handles retry, receipt and report actions.
Do and don’t
Section titled “Do and don’t”Do: Payment and attempts are primary; merchant support is secondary.
Don’t: Nest DetailPage inside FullPageView.
Content guidelines
Section titled “Content guidelines”Keep the payment and attempts in the primary modules. Put merchant and support information in the secondary modules.
Accessibility
Section titled “Accessibility”Use one heading per module. Keep the primary action reachable and omit a second back control when the app bar already provides one.
Place page modules, detail property lists, detail tables or chart modules directly in primary and secondary. Do not wrap a titled module in another titled module.
Keep receipt and report actions secondary.
In the example app
Section titled “In the example app”

PaymentDetailPage
class PaymentDetailPage extends StatelessWidget · lib/src/pages/detail_page.dart
Detail body owning one scroll region; do not nest in FullPageView.
| Parameter | Type | Default | Description |
|---|---|---|---|
title:required | String | — | Heading displayed above the content. |
primary:required | List<Widget> | — | Primary page modules, in reading order. |
secondary: | List<Widget>? | — | Supporting page modules, below the primary on phones. |
breadcrumbs: | List<PaymentBreadcrumb> | const [] | Host destinations leading back to the parent page. |
description: | String? | — | Supporting explanation below the heading. |
actions: | List<PaymentButton> | const [] | Header actions: on phones one shows as a title-row link and more go behind ⋮ (D59a). Put the page's priority action in primaryAction. |
pending: | bool | false | Shows placeholders while the host loads content. |
primaryAction: | PaymentButton? | — | The page's priority action, pinned in the footer (D62). |
secondaryAction: | PaymentButton? | — | At most one quiet action under the primary. |
PaymentPageModule
class PaymentPageModule extends StatelessWidget · lib/src/pages/page_module.dart
A flat, ruled section of a page.
| Parameter | Type | Default | Description |
|---|---|---|---|
title:required | String | — | Heading displayed above the content. |
child:required | Widget | — | Content rendered inside this layout body. |
subtitle: | String? | — | Supporting text below the module title. |
extraActions: | List<PaymentButton> | const [] | Supporting actions in the module header. |
PaymentBreadcrumb
class PaymentBreadcrumb · lib/src/pages/page_module.dart
Ancestor navigation delegated to the host.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | Visible name identifying this value or control. |
onPressed:required | VoidCallback | — | Runs the host action for this destination. |