Skip to content
Türkçe
All snippets

A payee warning that makes pausing a payment the easy choice

Give people a useful exit when a recipient name does not match. A lime warning poster puts the mismatch in large type and offers one clear save-for-later action, built with a keyboard-accessible WButton.

  • WDiv
  • WIcon
  • WText
  • WButton
preview
a_payee_warning_that_makes_pausing_a_pay_ejpmga.dart
WDiv(
  className: '''
    flex flex-col gap-6 w-full p-6
    bg-lime-300 dark:bg-lime-400
  ''',
  children: [
    WDiv(
      className: 'flex flex-row items-center gap-2',
      children: [
        WIcon(Icons.shield, className: '''
          size-6
          text-black dark:text-black
        '''),
        WText('Recipient check', className: '''
          text-lg font-bold
          text-black dark:text-black
        '''),
      ],
    ),
    WDiv(
      className: 'flex flex-col',
      children: [
        WText('That', className: '''
          text-6xl font-black tracking-tight
          text-black dark:text-black
        '''),
        WText('name', className: '''
          text-6xl font-black tracking-tight
          text-black dark:text-black
        '''),
        WText('doesn\'t', className: '''
          text-6xl font-black tracking-tight
          text-black dark:text-black
        '''),
        WText('match.', className: '''
          text-6xl font-black tracking-tight
          text-black dark:text-black
        '''),
      ],
    ),
    WText('£840 to Ellis Reed.\nConfirm their details before paying.', className: '''
      text-lg font-semibold
      text-black dark:text-black
    '''),
    WDiv(className: 'h-8'),
    WButton(
      onTap: () {},
      className: '''
        w-full py-4 rounded-full
        flex items-center justify-center
        bg-black dark:bg-black
        hover:bg-gray-800 dark:hover:bg-gray-800
        focus:ring-2
        focus:ring-black dark:focus:ring-black
        disabled:opacity-50
      ''',
      child: WText('Save payment for later', className: '''
        text-center text-lg font-bold
        text-lime-300 dark:text-lime-400
      '''),
    ),
  ],
)