Flutter Virtual Payment Card with Balance Summary
A premium gradient virtual payment card with an EMV chip, masked card number, cardholder details, and a balance summary row with a live trend badge. Built with Wind utility classes and full dark-mode pairs.
main.dart
WDiv(
className: 'flex flex-col w-full max-w-sm',
children: [
WDiv(
className: 'flex flex-col w-full rounded-3xl p-6 bg-gradient-to-br from-indigo-500 to-violet-700 dark:from-indigo-600 dark:to-violet-800 shadow-xl',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WText(
'AURORA',
className: 'text-base font-bold tracking-widest text-white dark:text-white'
),
WIcon(
Icons.wifi,
className: 'text-xl text-white dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center mt-6',
children: [
WDiv(
className: 'w-12 h-9 rounded-md bg-gradient-to-br from-amber-200 to-yellow-500 dark:from-amber-300 dark:to-yellow-600',
child: WSpacer(),
),
],
),
WText(
'4012 8829 •••• 3456',
className: 'mt-6 text-xl font-semibold tracking-widest text-white dark:text-white'
),
WDiv(
className: 'flex flex-row items-end justify-between w-full mt-6',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'CARD HOLDER',
className: 'text-xs tracking-wide text-indigo-100 dark:text-indigo-200'
),
WText(
'ALEX MORGAN',
className: 'text-sm font-semibold text-white dark:text-white'
),
],
),
WDiv(
className: 'flex flex-col items-end',
children: [
WText(
'EXPIRES',
className: 'text-xs tracking-wide text-indigo-100 dark:text-indigo-200'
),
WText(
'08/29',
className: 'text-sm font-semibold text-white dark:text-white'
),
],
),
WText(
'VISA',
className: 'text-lg font-bold italic tracking-wide text-white dark:text-white'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full mt-4 p-4 rounded-2xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Available balance',
className: 'text-xs text-gray-500 dark:text-gray-400'
),
WText(
'$12,480.55',
className: 'text-lg font-bold text-gray-900 dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center px-3 py-1 rounded-full bg-emerald-50 dark:bg-emerald-950',
children: [
WIcon(
Icons.trending_up,
className: 'text-sm text-emerald-600 dark:text-emerald-400'
),
WText(
'+2.4%',
className: 'ml-1 text-xs font-semibold text-emerald-600 dark:text-emerald-400'
),
],
),
],
),
],
)
Stats
- Views
- 18
- Stars
- 0
- Revisions
- 1
- Size
- 3,350 chars
- Created
- Jun 17, 2026