Flutter Benefits Enrollment Card with Side by Side Plan Comparison
An open-enrollment card that puts two health plans in matched columns so premium, deductible, out-of-pocket max, and HSA match scan straight across, with the recommended plan outlined and badged. Closes on the yearly saving, styled with Wind utility classes and full dark-mode pairs.
main.dart
WDiv(
className: 'max-w-sm rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 p-6 shadow-xl',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-11 h-11 rounded-2xl bg-indigo-600 dark:bg-indigo-500',
child: WIcon(
Icons.account_balance_wallet,
className: 'text-white text-xl'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Open Enrollment',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Plan year 2027 | Closes Aug 15',
className: 'text-xs text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
],
),
WDiv(
className: 'rounded-full bg-amber-100 dark:bg-amber-500 px-2.5 py-1',
child: WText(
'11 days',
className: 'text-[11px] font-bold text-amber-700 dark:text-gray-900'
),
),
],
),
WDiv(
className: 'flex flex-row items-start w-full gap-3 mt-6',
children: [
WDiv(
className: 'flex flex-col w-[162px] rounded-2xl border-2 border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 p-3',
children: [
WDiv(
className: 'w-full h-4'
),
WText(
'PPO Select',
className: 'text-sm font-bold text-gray-900 dark:text-white mt-2'
),
WText(
'Plan A | Nationwide',
className: 'text-[10px] text-gray-500 dark:text-gray-400 mt-0.5'
),
WDiv(
className: 'flex flex-row items-baseline mt-2.5',
children: [
WText(
'$184',
className: 'text-2xl font-bold text-gray-900 dark:text-white'
),
WText(
'/mo',
className: 'text-[11px] font-semibold text-gray-400 dark:text-gray-500 ml-1'
),
],
),
WDiv(
className: 'w-full border-t border-gray-200 dark:border-gray-700 mt-3'
),
WText(
'Deductible',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2.5'
),
WText(
'$500',
className: 'text-xs font-bold text-gray-900 dark:text-white'
),
WText(
'Out of pocket max',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2'
),
WText(
'$3,000',
className: 'text-xs font-bold text-gray-900 dark:text-white'
),
WText(
'Employer HSA',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2'
),
WText(
'Not eligible',
className: 'text-xs font-bold text-gray-400 dark:text-gray-500'
),
WDiv(
className: 'flex flex-row items-center mt-2.5',
children: [
WIcon(
Icons.check_circle,
className: 'text-emerald-500 dark:text-emerald-400 text-xs'
),
WText(
'Dental included',
className: 'text-[10px] font-semibold text-gray-600 dark:text-gray-300 ml-1.5'
),
],
),
],
),
WDiv(
className: 'flex flex-col w-[162px] rounded-2xl border-2 border-indigo-500 dark:border-indigo-400 bg-indigo-50 dark:bg-gray-800 p-3',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-full rounded-md bg-indigo-600 dark:bg-indigo-500 py-0.5',
child: WText(
'BEST VALUE',
className: 'text-[9px] font-bold tracking-wide text-white dark:text-white'
),
),
WText(
'HDHP + HSA',
className: 'text-sm font-bold text-gray-900 dark:text-white mt-2'
),
WText(
'Plan B | Nationwide',
className: 'text-[10px] text-gray-500 dark:text-gray-400 mt-0.5'
),
WDiv(
className: 'flex flex-row items-baseline mt-2.5',
children: [
WText(
'$96',
className: 'text-2xl font-bold text-indigo-700 dark:text-indigo-300'
),
WText(
'/mo',
className: 'text-[11px] font-semibold text-gray-400 dark:text-gray-500 ml-1'
),
],
),
WDiv(
className: 'w-full border-t border-indigo-200 dark:border-gray-700 mt-3'
),
WText(
'Deductible',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2.5'
),
WText(
'$3,200',
className: 'text-xs font-bold text-gray-900 dark:text-white'
),
WText(
'Out of pocket max',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2'
),
WText(
'$6,750',
className: 'text-xs font-bold text-gray-900 dark:text-white'
),
WText(
'Employer HSA',
className: 'text-[10px] font-semibold text-gray-400 dark:text-gray-500 mt-2'
),
WText(
'$750 a year',
className: 'text-xs font-bold text-emerald-600 dark:text-emerald-400'
),
WDiv(
className: 'flex flex-row items-center mt-2.5',
children: [
WIcon(
Icons.check_circle,
className: 'text-emerald-500 dark:text-emerald-400 text-xs'
),
WText(
'Dental included',
className: 'text-[10px] font-semibold text-gray-600 dark:text-gray-300 ml-1.5'
),
],
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center w-full rounded-2xl bg-emerald-50 dark:bg-gray-800 border border-emerald-200 dark:border-emerald-500 p-3 mt-4',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-9 h-9 rounded-full bg-white dark:bg-gray-900',
child: WIcon(
Icons.trending_up,
className: 'text-emerald-500 dark:text-emerald-400 text-base'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Plan B keeps $1,806 more a year',
className: 'text-xs font-semibold text-gray-900 dark:text-white'
),
WText(
'Premiums saved plus the HSA match',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
],
),
WDiv(
className: 'w-full mt-5',
child: WButton(
className: 'flex flex-row items-center justify-center w-full rounded-2xl bg-indigo-600 dark:bg-indigo-500 py-3.5',
child: WText(
'Select HDHP + HSA',
className: 'text-sm font-bold text-white dark:text-white'
),
),
),
WDiv(
className: 'flex flex-row items-center justify-center w-full mt-3',
child: WText(
'Coverage starts Sep 1 | One change per year',
className: 'text-[11px] text-gray-400 dark:text-gray-500'
),
),
],
)
Stats
- Views
- 17
- Stars
- 0
- Revisions
- 1
- Size
- 8,203 chars
- Created
- Aug 5, 2026