An overnight charging plan that makes cheaper hours obvious
Turn electricity rates into a decision, not a spreadsheet. A bold savings estimate, a six-hour price skyline and a ready-by promise make overnight EV charging easy to approve. Built with WCard and theme-paired Wind classes.
WCard(
className: '''
w-full p-6 rounded-3xl border
border-slate-200 dark:border-slate-700
bg-white dark:bg-slate-900
''',
header: WDiv(className: 'flex flex-row items-center gap-3', children: [
WIcon(Icons.electric_bolt, className: 'size-7 text-slate-900 dark:text-white'),
WText('Night shift', className: '''
flex-1 text-xl font-bold
text-slate-950 dark:text-white
'''),
WBadge('PLAN PREVIEW', className: '''
px-2 py-1
bg-slate-100 dark:bg-slate-800
text-slate-600 dark:text-slate-300
'''),
]),
footer: WButton(
onTap: () {},
className: '''
w-full py-4 rounded-2xl
bg-slate-950 dark:bg-slate-100
hover:bg-slate-800 dark:hover:bg-white
focus:ring-2 focus:ring-slate-400 dark:focus:ring-slate-500
disabled:opacity-50
''',
child: WText('Use cheaper hours', className: '''
text-center font-semibold
text-white dark:text-slate-950
'''),
),
child: WDiv(className: 'flex flex-col gap-5', children: [
WSpacer(className: 'h-3'),
WCard(className: '''
p-5 rounded-2xl
bg-lime-200 dark:bg-lime-300
''', child: WDiv(className: 'flex flex-col gap-1', children: [
WText('SAME CHARGE. LESS SPEND.', className: '''
text-xs font-semibold tracking-wide
text-lime-950 dark:text-lime-950
'''),
WText('Save \$4.80', className: '''
text-4xl font-bold tracking-tight
text-lime-950 dark:text-lime-950
'''),
WText('Estimated vs. charging at peak rate', className: 'text-sm text-lime-900 dark:text-lime-900'),
])),
WDiv(className: 'flex flex-row items-center', children: [
WText('Tonight’s price window', className: '''
flex-1 font-semibold
text-slate-950 dark:text-white
'''),
WText('¢ / kWh', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WDiv(className: 'flex flex-row items-end gap-2', children: [
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('28¢', className: 'text-xs text-slate-500 dark:text-slate-400'),
WDiv(className: 'w-full h-24 rounded-lg bg-slate-200 dark:bg-slate-700'),
WText('22:00', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('22¢', className: 'text-xs text-slate-500 dark:text-slate-400'),
WDiv(className: 'w-full h-[75px] rounded-lg bg-slate-200 dark:bg-slate-700'),
WText('23:00', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('8¢', className: 'text-xs text-slate-900 dark:text-slate-100'),
WDiv(className: 'w-full h-[27px] rounded-lg bg-slate-900 dark:bg-slate-100'),
WText('00:00', className: 'text-xs text-slate-900 dark:text-slate-100'),
]),
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('6¢', className: 'text-xs text-slate-900 dark:text-slate-100'),
WDiv(className: 'w-full h-[21px] rounded-lg bg-slate-900 dark:bg-slate-100'),
WText('01:00', className: 'text-xs text-slate-900 dark:text-slate-100'),
]),
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('6¢', className: 'text-xs text-slate-900 dark:text-slate-100'),
WDiv(className: 'w-full h-[21px] rounded-lg bg-slate-900 dark:bg-slate-100'),
WText('02:00', className: 'text-xs text-slate-900 dark:text-slate-100'),
]),
WDiv(className: 'flex-1 flex flex-col items-center gap-2', children: [
WText('8¢', className: 'text-xs text-slate-900 dark:text-slate-100'),
WDiv(className: 'w-full h-[27px] rounded-lg bg-slate-900 dark:bg-slate-100'),
WText('03:00', className: 'text-xs text-slate-900 dark:text-slate-100'),
]),
]),
WText('Planned charging: 00:00 to 04:00', className: 'text-sm text-slate-600 dark:text-slate-300'),
WDiv(className: '''
flex flex-row items-center gap-3 p-4 rounded-2xl border
border-slate-200 dark:border-slate-700
''', children: [
WIcon(Icons.directions_car, className: 'size-6 text-slate-600 dark:text-slate-300'),
WText('40% to 80%', className: '''
flex-1 text-base font-semibold
text-slate-950 dark:text-white
'''),
WText('Ready by 07:00', className: 'text-xs text-slate-600 dark:text-slate-300'),
]),
WText('You stay in control. Change the plan anytime.', className: '''
text-xs text-center
text-slate-500 dark:text-slate-400
'''),
WSpacer(className: 'h-1'),
]),
)
More like this
-
Flutter Electromagnetic Spectrum Card with Log Scale Wavelength Bands and Visible Light Zoom
A Flutter electromagnetic spectrum card for science and physics education apps: radio, microwave, infrared, visible, UV, X-ray and gamma bands on a log wavelength axis from 10 m to 0.1 pm with NASA band edges, and a connector zooming the visible slice into a 700 to 400 nm strip. Built with wind_kit.
-
Flutter Pascal Triangle Card with Odd Entry Pattern and Row Sums
A Flutter Pascal's triangle card for maths and tutoring apps: rows 0 to 7 as binomial coefficient tiles, odd entries shaded so the Sierpinski pattern shows, and a row sum gutter doubling from 1 to 128. Counts 36 entries, 27 odd, 255 total. Centred wind_kit rows, one node per number.
-
Flutter Git Commit Graph Card with Branch Lanes and Merge Lines
A commit history card for developer tools and Git clients, built with Wind in Flutter. Colour-coded lanes for main, a feature branch and a hotfix fork and merge with right-angle connectors, commit rows carry branch, tag and HEAD chips, and an ahead/behind summary sits above a rebase action.