Sign in view
PaymentSignInView explains which apps are connecting and what permissions that grants. Continue opens your host authentication flow; this view has no credential fields or arbitrary content slot. Brand slots accept PaymentImage or PaymentIcon. The host handles sign-in, navigation and legal-link destinations.



PaymentSignInView( requesterBrand: const PaymentIcon(Icons.school_outlined), brand: const PaymentIcon(Icons.account_balance_wallet_outlined), title: 'Masuk dengan Ruang Bayar', description: 'Untuk membayar dan melihat pembayaran Anda di Toko Belajar.', canDo: [ 'Melihat nama dan nomor akun Anda', 'Meminta pembayaran, selalu dengan konfirmasi Anda', ], cannotDo: ['Melihat PIN atau saldo Anda'], legalNotice: 'Dengan melanjutkan, Anda menyetujui {0} dan {1} Ruang Bayar.', legalLinks: [ PaymentLink(label: 'Ketentuan', external: true, onPressed: openTerms), PaymentLink(label: 'Privasi', external: true, onPressed: openPrivacy), ], primaryAction: PaymentButton(label: 'Lanjutkan', onPressed: signIn), secondaryAction: PaymentButton( label: 'Batal', variant: PaymentButtonVariant.quiet, onPressed: cancel, ),);Account linking (D61)
Section titled “Account linking (D61)”Show the connecting apps, their permissions and a pinned Continue action.
- Two tiles: the connecting app (
requesterBrand) · · · the account (brand). - One specific headline, such as “Masuk dengan Ruang Bayar”, not “Sign in to continue”.
- Can and can never, in plain view:
canDo(✓) under “Aplikasi ini bisa” andcannotDo(✕) under “Aplikasi ini tidak bisa”, in one outlined box. Put reassurance such as “never sees your PIN” here instead of a footnote. - One legal sentence in the pinned footer, right above the action:
legalNoticewith{0},{1}replaced by inline links tolegalLinks. Inline links in a sentence are exempt from the 48 dp target rule and keep link semantics. - Pinned footer: a short primary (“Lanjutkan”) and a quiet “Batal”, the body scrolls independently of the footer on the 360×640 dp Android phone at 200% text.
learnMore and footnote are deprecated; they still render in the body.


Variants
Section titled “Variants”Variants: ready, busy, host error.
States and content
Section titled “States and content”Use ready for account-linking information, busy while the host starts sign-in, and a host error when that operation fails.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Enter the signed-out flow | ready | Continue delegates to host sign-in; learn-more is a disclosure and legal destinations are links. |
Use Onboarding view for working KYC tasks.
States
Section titled “States”Continue delegates to host sign-in. A host error receives focus and is announced; it does not turn into a payment result.
Do and don’t
Section titled “Do and don’t”Do: Continue delegates to host sign-in; learn-more is a disclosure and legal destinations are links.
Don’t: Add credential fields or a free content slot.
Content guidelines
Section titled “Content guidelines”Name the connecting apps and their permissions. Explain legal links in one sentence above Continue; collect credentials in the host authentication flow.
Accessibility
Section titled “Accessibility”Terms and privacy links can receive keyboard focus and activate with Enter or Space. The legal sentence wraps at large text; its inline links retain link semantics.
Learn-more is a disclosure row with an information icon and chevron. The brand icon aligns with the heading.
The view has no credential fields; your app runs sign-in and offers retry after a cancellation.
In the example app
Section titled “In the example app”

PaymentSignInView
class PaymentSignInView extends StatefulWidget · lib/src/views/sign_in_view.dart
External sign-in entry point with no credential input or free content slot.
An account-linking screen (D61): both app tiles, one specific headline, what the connecting app can and can never do in plain view, and a pinned footer with one legal sentence, a short primary and a quiet cancel, so the action is on the first screen at any text size.
| Parameter | Type | Default | Description |
|---|---|---|---|
primaryAction:required | PaymentButton | — | The single primary action that starts host sign-in, such as "Continue". |
title: | String? | — | Heading displayed above the content, such as "Sign in with Ruang Bayar". |
description: | String? | — | Supporting explanation below the heading. |
brand: | Widget? | — | Host brand icon or image: the account being signed in to. |
requesterBrand: | Widget? | — | The connecting app's icon or image, shown before brand. |
canDo: | List<String> | const [] | What the connecting app can do, shown with ✓. |
cannotDo: | List<String> | const [] | What the connecting app can never do, shown with ✕. |
legalNotice: | String? | — | One legal sentence above the actions. {0}, {1} … become inline links to the matching legalLinks. Without it, legalLinks show as a row of links. |
learnMore: | PaymentSignInLearnMore? | — | Disclosure that opens a supplemental explanation. |
secondaryAction: | PaymentButton? | — | Optional quiet action under the primary, such as "Cancel". |
legalLinks: | List<PaymentLink> | const [] | Host terms and privacy destinations. |
footnote: | String? | — | Short reassurance below the content. |
errorText: | String? | — | Safe error message displayed beside the control. |
PaymentSignInLearnMore
class PaymentSignInLearnMore · lib/src/views/sign_in_view.dart
Supplemental explanation presented separately in a focus view.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | Visible label for the control. |
title:required | String | — | Heading displayed above the content. |
builder:required | WidgetBuilder | — | Builds the supplemental explanation. |