Skip to content
Get started
Menu
Get started

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.

External bank sign-in with requester branding, permissions, legal links and pinned Continue and Cancel actions.External bank sign-in with requester branding, permissions, legal links and pinned Continue and Cancel actions.
Sign in view
External bank sign-in with requester branding, permissions, legal links and pinned Continue and Cancel actions at 200 percent text.
200% text
example/lib/screens/steps/sign_in_step.dart
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,
),
);

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” and cannotDo (✕) 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: legalNotice with {0}, {1} replaced by inline links to legalLinks. 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.

Sign-in on 360×640 dp Android phone at 200% text in Indonesian: scrollable account-linking content and the pinned legal sentence with Lanjutkan and Batal
360×640 dp Android phone, 200%, Indonesian
Sign-in on 360×640 dp Android phone at 200% text in English with the pinned Continue button
360×640 dp Android phone, 200%, English

Variants: ready, busy, host error.

Use ready for account-linking information, busy while the host starts sign-in, and a host error when that operation fails.

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.

Continue delegates to host sign-in. A host error receives focus and is announced; it does not turn into a payment result.

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.

Name the connecting apps and their permissions. Explain legal links in one sentence above Continue; collect credentials in the host authentication flow.

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.

Example sign in screen with synthetic dataExample sign in screen with synthetic data
Example: sign in

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.

ParameterTypeDefaultDescription
primaryAction:requiredPaymentButton—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.

ParameterTypeDefaultDescription
label:requiredString—Visible label for the control.
title:requiredString—Heading displayed above the content.
builder:requiredWidgetBuilder—Builds the supplemental explanation.