Skip to content
Türkçe
All snippets

A refund choice that keeps your money yours

Compare store credit with money back to the original card, without hiding either option. Equal WCard panels show the bonus, timing and spending limits before the shopper confirms.

  • WDiv
  • WText
  • WCard
  • WBadge
  • WButton
preview
a_refund_choice_that_keeps_your_money_yo_npniy2.dart
WDiv(
  className: '''
    w-full px-4 py-12
    bg-slate-900 dark:bg-slate-900
  ''',
  child: WDiv(className: 'flex flex-col gap-4', children: [
    WText('Choose where your refund goes', className: '''
      text-2xl font-bold
      text-white dark:text-white
    '''),
    WText('Return #RT-2841 · Canvas overshirt', className: 'text-sm text-slate-400 dark:text-slate-400'),
    WDiv(className: 'flex flex-row gap-3', children: [
      WCard(
        className: '''
          flex-1 h-80
          p-4 rounded-lg border
          border-slate-700 dark:border-slate-700
          bg-slate-800 dark:bg-slate-800
        ''',
        child: WDiv(className: 'flex flex-col gap-3', children: [
          WText('Store credit', className: '''
            text-sm font-semibold
            text-slate-300 dark:text-slate-300
          '''),
          WText('\$68', className: '''
            text-3xl font-bold
            text-slate-300 dark:text-slate-300
          '''),
          WText('Includes a \$4 bonus', className: 'text-xs text-slate-400 dark:text-slate-400'),
          WDiv(className: 'h-0.5 bg-slate-700 dark:bg-slate-700'),
          WText('Ready after drop-off scan', className: 'text-sm text-slate-300 dark:text-slate-300'),
          WText('Spend only in this shop', className: 'text-sm text-slate-300 dark:text-slate-300'),
        ]),
      ),
      WCard(
        className: '''
          flex-1 h-80
          p-4 rounded-lg border-2
          border-sky-400 dark:border-sky-400
          bg-slate-800 dark:bg-slate-800
        ''',
        child: WDiv(className: 'flex flex-col gap-3', children: [
          WDiv(className: 'flex flex-row items-center justify-between', children: [
            WText('Card', className: '''
              text-sm font-semibold
              text-white dark:text-white
            '''),
            WBadge('Better', className: '''
              px-2 py-0.5
              bg-sky-400 dark:bg-sky-400
              text-slate-950 dark:text-slate-950
            '''),
          ]),
          WText('\$64', className: '''
            text-3xl font-bold
            text-sky-400 dark:text-sky-400
          '''),
          WText('Original card · 4826', className: 'text-xs text-slate-300 dark:text-slate-300'),
          WDiv(className: 'h-0.5 bg-slate-700 dark:bg-slate-700'),
          WText('3 to 5 business days after scan', className: 'text-sm text-white dark:text-white'),
          WText('Yours to spend anywhere', className: 'text-sm text-white dark:text-white'),
        ]),
      ),
    ]),
    WText('Store credit adds \$4, but keeps your refund in this shop.', className: 'text-sm text-slate-300 dark:text-slate-300'),
    WButton(
      onTap: () {},
      className: '''
        w-full py-3 rounded-lg
        bg-sky-400 dark:bg-sky-400
        hover:bg-sky-300 dark:hover:bg-sky-300
        focus:ring-2
        focus:ring-sky-200 dark:focus:ring-sky-200
      ''',
      child: WText('Refund \$64 to my card', className: '''
        text-center font-semibold
        text-slate-950 dark:text-slate-950
      '''),
    ),
  ]),
)
  • An age-proof panel that keeps your identity out of the exchange

    Let people share an over-18 result without handing over their birthday or address. A clear disclosure panel uses WSwitch controls to separate the proof from personal details before approval.

    • WDiv
    • WText
    • WSwitch
    • WButton
    • WIcon
  • A repair tracker that makes warranty coverage clear

    Give a jacket repair a visible path from arrival to return, with the covered cost confirmed at the approval step. A tinted route and connected w-0.5 rail make the current stage easy to find without another support message.

    • WDiv
    • WText
  • A grocery assistant that asks before making a substitution

    Make grocery substitutions a conversation, not a surprise at the door. Alternating chat bubbles explain a dietary-safe swap, while quick replies and a WInput composer keep the shopper in control.

    • WDiv
    • WIcon
    • WText
    • WButton
    • WInput