Skip to content
Get started
Menu
Get started

Overview page

A spending overview composes flat ruled modules. Variants: single column, primary/secondary columns at 840 dp. OverviewPage never scrolls vertically; place it in FullPageView or an existing host scroll region. Module actions are small hug buttons; extra actions collapse into a menu.

Payment overview with a header, summary and supporting sections.Payment overview with a header, summary and supporting sections.
Overview page
Payment overview with a header, summary and supporting sections at 200 percent text.
200% text
example/lib/screens/gallery_views.dart
PaymentOverviewPage(
primary: [
ChartModule(
title: 'This month',
state: ChartState.ready,
chart: SizedBox(
height: 240,
child: PaymentBarChart(points: _chartFixture('typical')),
),
),
const PaymentPageModule(
title: 'Recent transactions',
child: PaymentPropertyList(
items: [
PaymentPropertyListItem(
label: 'Toko Contoh',
valueText: 'Rp102.500',
),
PaymentPropertyListItem(
label: 'Groceries',
valueText: 'Rp75.000',
),
PaymentPropertyListItem(
label: 'Coffee',
valueText: 'Rp25.000',
),
],
),
),
],
secondary: const [
PaymentPageModule(
title: 'Balance',
child: PaymentPropertyList(
items: [
PaymentPropertyListItem(
label: 'Available',
valueText: 'Rp500.000',
),
],
),
),
],
);

Modules are spaced evenly: a chart module gets the same space under it as a page module (24 dp to the next module’s hairline). Inside a view, one column is capped at 640 dp; with a secondary column the page keeps two columns from 840 dp, capped at 1040 dp. Give a chart module the headline it summarises; a “—” beside a chart with data reads as missing.

Spending chart and recent transactions beside the balance module, in English on Android tablet.
Wide (tablet)

Variants: single column, primary/secondary columns.

Use one column for a narrow overview or primary and secondary columns from 840 dp. Place the page inside an existing scroll region.

Situation Variant / composition Payment example
Spending and monthly facts primary/secondary columns Place ChartModule directly in primary and facts directly in secondary.

Use Detail page for a transaction destination.

Each module shows its own loading, empty or error state. A supporting module failure does not replace the rest of the overview.

Do: Place ChartModule directly in primary and facts directly in secondary.

Don’t: Add a second scroll region inside FullPageView.

Give each module one heading. Keep the most useful payment facts before optional spending summaries.

Keep module headings in reading order. Stack columns on narrow screens so supporting facts follow the primary content.

Primary and secondary accept page modules, detail property lists, detail tables and chart modules directly. Arbitrary body widgets fail the debug admission check.

Example history screen with synthetic dataExample history screen with synthetic data
Example: history

PaymentOverviewPage

class PaymentOverviewPage extends StatelessWidget · lib/src/pages/overview_page.dart

Non-scrolling page modules; place inside a FullPageView.

ParameterTypeDefaultDescription
primary:requiredList<Widget>—Primary page modules, in reading order.
secondary:List<Widget>?—Supporting page modules, below the primary on phones.
pending:boolfalseShows placeholders while the host loads content.

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.