A shopping conversation that checks gift returns before checkout
Help gift shoppers check the catch before they buy. Alternating chat bubbles explain open-box returns, a source link makes the answer traceable, and a WInput composer keeps follow-up questions close.
WDiv(
className: '''
w-full px-4 py-6
flex flex-col gap-3
bg-violet-950 dark:bg-violet-950
''',
children: [
WDiv(className: '''
flex flex-row items-center gap-3
pb-3
''', children: [
WIcon(Icons.chat_bubble, className: 'size-9 text-violet-300 dark:text-violet-300'),
WDiv(className: 'flex flex-col', children: [
WText('Before you buy', className: '''
text-lg font-semibold
text-white dark:text-white
'''),
WText('Shopping assistant', className: 'text-sm text-violet-300 dark:text-violet-300'),
]),
]),
WDiv(className: 'flex flex-col items-start gap-2', children: [
WText('ASSISTANT', className: 'text-xs text-violet-300 dark:text-violet-300'),
WDiv(className: '''
max-w-72 px-4 py-3
rounded-tl-2xl rounded-tr-2xl rounded-br-2xl rounded-bl-sm
bg-violet-900 dark:bg-violet-900
''', child: WText('I checked the return terms for the headphones in your bag.', className: 'text-base text-violet-50 dark:text-violet-50')),
]),
WDiv(className: 'flex flex-col items-end gap-2', children: [
WDiv(className: '''
max-w-72 px-4 py-3
rounded-tl-2xl rounded-tr-2xl rounded-bl-2xl rounded-br-sm
bg-violet-300 dark:bg-violet-300
''', child: WText('They are a gift. What if the box has been opened.', className: 'text-base text-violet-950 dark:text-violet-950')),
]),
WDiv(className: 'flex flex-col items-start gap-2', children: [
WDiv(className: '''
max-w-72 px-4 py-3
rounded-tl-2xl rounded-tr-2xl rounded-br-2xl rounded-bl-sm
bg-violet-900 dark:bg-violet-900
''', child: WText('Open-box returns are accepted. Keep every accessory and the original packaging.', className: 'text-base text-violet-50 dark:text-violet-50')),
WAnchor(onTap: () {}, child: WText('Source: store return policy', className: '''
text-xs underline
text-violet-200 dark:text-violet-200
hover:text-white dark:hover:text-white
focus:text-white dark:focus:text-white
''')),
]),
WDiv(className: '''
flex flex-row gap-2
pt-3
''', children: [
WButton(onTap: () {}, className: '''
px-3 py-3 rounded-full border
border-violet-700 dark:border-violet-700
hover:bg-violet-800 dark:hover:bg-violet-800
focus:ring-2 focus:ring-violet-300 dark:focus:ring-violet-300
disabled:opacity-50
''', child: WText('Check gift receipt', className: 'text-sm text-violet-100 dark:text-violet-100')),
WButton(onTap: () {}, className: '''
px-3 py-3 rounded-full border
border-violet-700 dark:border-violet-700
hover:bg-violet-800 dark:hover:bg-violet-800
focus:ring-2 focus:ring-violet-300 dark:focus:ring-violet-300
disabled:opacity-50
''', child: WText('Return deadline', className: 'text-sm text-violet-100 dark:text-violet-100')),
]),
WDiv(className: '''
flex flex-row items-center gap-2
pt-1
''', children: [
WInput(placeholder: 'Ask about this item', onChanged: (v) {}, className: '''
flex-1 h-12 px-4 rounded-full
bg-violet-900 dark:bg-violet-900
text-base text-white dark:text-white
hover:bg-violet-800 dark:hover:bg-violet-800
focus:ring-2 focus:ring-violet-300 dark:focus:ring-violet-300
disabled:opacity-50
'''),
WButton(onTap: () {}, semanticLabel: 'Send message', className: '''
size-12 rounded-full
flex items-center justify-center
bg-violet-300 dark:bg-violet-300
hover:bg-violet-200 dark:hover:bg-violet-200
focus:ring-2 focus:ring-violet-100 dark:focus:ring-violet-100
disabled:opacity-50
''', child: WIcon(Icons.send, className: 'size-5 text-violet-950 dark:text-violet-950')),
]),
],
)
More like this
-
An ownership pass that sends the product history with the coat
Give a secondhand sale a clear handoff: a claim code, named recipient and repair history that travels with the item. A paper pass with a perforated stub and
overflow-hiddenedges keeps ownership transfer ready to share. -
A payment comparison that puts the full cost before the first installment
Help shoppers compare a smaller first payment with the actual total. Two equal
WCardpanels show an upfront price, four installments and the exact financing cost before checkout. -
A refund choice that keeps your money yours
Compare store credit with money back to the original card, without hiding either option. Equal
WCardpanels show the bonus, timing and spending limits before the shopper confirms.