Skip to content
Get started
Menu
Get started

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.

Payment detail pages with headers, content and footer actions.Payment detail pages with headers, content and footer actions.
Detail page
Payment detail pages with headers, content and footer actions at 200 percent text.
200% text
example/lib/screens/gallery_views.dart
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: () {},
),
),
],
),
],
),
],
);
  • Priority action at the bottom. primaryAction pins in the footer, full width on phones, with at most one quiet secondaryAction under 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 actions shows 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.
Transaction detail on 360×640 dp Android phone at 200% text: Lihat struk pinned as the primary with Laporkan masalah under it
360×640 dp Android phone, 200%, Indonesian
Transaction detail on Android tablet with payment details and merchant information in two columns above the footer actions
Android tablet, English
Payment details and merchant modules in two columns with receipt and report actions, in English on Android tablet.
Wide (tablet)

Variants: primary, primary with secondary modules.

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.

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.

Pending keeps the page header and replaces modules with skeletons. The host supplies the module data and handles retry, receipt and report actions.

Do: Payment and attempts are primary; merchant support is secondary.

Don’t: Nest DetailPage inside FullPageView.

Keep the payment and attempts in the primary modules. Put merchant and support information in the secondary modules.

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.

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

PaymentDetailPage

class PaymentDetailPage extends StatelessWidget · lib/src/pages/detail_page.dart

Detail body owning one scroll region; do not nest in FullPageView.

ParameterTypeDefaultDescription
title:requiredString—Heading displayed above the content.
primary:requiredList<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:boolfalseShows 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.

ParameterTypeDefaultDescription
title:requiredString—Heading displayed above the content.
child:requiredWidget—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.

ParameterTypeDefaultDescription
label:requiredString—Visible name identifying this value or control.
onPressed:requiredVoidCallback—Runs the host action for this destination.