A home battery sheet that keeps backup power in reserve
Give home energy users clear control over backup reserve, charge limits and whether the car can draw from the house battery. A calm settings sheet uses WSwitch controls with colour reserved for active rules.
WDiv(
className: '''
w-full px-4 py-8
flex flex-col gap-2
bg-black dark:bg-black
''',
children: [
WText('Home battery', className: '''
px-1 pb-1
text-3xl font-bold
text-white dark:text-white
'''),
WText('Keep power for the house.', className: '''
px-1 pb-5
text-base
text-neutral-400 dark:text-neutral-400
'''),
WText('Battery limits', className: '''
px-4 pb-1
text-sm
text-neutral-400 dark:text-neutral-400
'''),
WDiv(className: '''
flex flex-col
rounded-xl overflow-hidden
bg-neutral-900 dark:bg-neutral-900
''', children: [
WButton(onTap: () {}, className: '''
px-4 py-4
hover:bg-neutral-800 dark:hover:bg-neutral-800
focus:bg-neutral-800 dark:focus:bg-neutral-800
disabled:opacity-50
''', child: WDiv(className: 'flex flex-row items-center gap-2', children: [
WText('Backup reserve', className: 'flex-1 text-white dark:text-white'),
WText('30%', className: 'text-neutral-400 dark:text-neutral-400'),
WIcon(Icons.chevron_right, className: 'size-5 text-neutral-500 dark:text-neutral-500'),
])),
WDiv(className: 'h-0.5 mx-4 bg-neutral-800 dark:bg-neutral-800'),
WButton(onTap: () {}, className: '''
px-4 py-4
hover:bg-neutral-800 dark:hover:bg-neutral-800
focus:bg-neutral-800 dark:focus:bg-neutral-800
disabled:opacity-50
''', child: WDiv(className: 'flex flex-row items-center gap-2', children: [
WText('Charge ceiling', className: 'flex-1 text-white dark:text-white'),
WText('90%', className: 'text-neutral-400 dark:text-neutral-400'),
WIcon(Icons.chevron_right, className: 'size-5 text-neutral-500 dark:text-neutral-500'),
])),
]),
WText('Reserve is saved for a grid outage.', className: '''
px-4 pt-1 pb-4
text-sm
text-neutral-400 dark:text-neutral-400
'''),
WText('Automatic rules', className: '''
px-4 pb-1
text-sm
text-neutral-400 dark:text-neutral-400
'''),
WDiv(className: '''
flex flex-col
rounded-xl overflow-hidden
bg-neutral-900 dark:bg-neutral-900
''', children: [
WDiv(className: 'flex flex-row items-center gap-3 px-4 py-4', children: [
WText('Solar surplus first', className: 'flex-1 text-white dark:text-white'),
WSwitch(value: true, onChanged: (v) {}, semanticLabel: 'Solar surplus first', thumbClassName: 'size-6 rounded-full bg-white dark:bg-white', className: '''
w-12 h-7 rounded-full
justify-start checked:justify-end
bg-neutral-700 dark:bg-neutral-700
checked:bg-green-500 dark:checked:bg-green-500
hover:ring-2 focus:ring-2
ring-neutral-400 dark:ring-neutral-400
disabled:opacity-50
'''),
]),
WDiv(className: 'flex flex-row items-center gap-3 px-4 py-4', children: [
WText('Keep battery for home', className: 'flex-1 text-white dark:text-white'),
WSwitch(value: true, onChanged: (v) {}, semanticLabel: 'Keep battery for home', thumbClassName: 'size-6 rounded-full bg-white dark:bg-white', className: '''
w-12 h-7 rounded-full
justify-start checked:justify-end
bg-neutral-700 dark:bg-neutral-700
checked:bg-green-500 dark:checked:bg-green-500
hover:ring-2 focus:ring-2
ring-neutral-400 dark:ring-neutral-400
disabled:opacity-50
'''),
]),
WDiv(className: 'flex flex-row items-center gap-3 px-4 py-4', children: [
WText('Charge on cheap rates', className: 'flex-1 text-white dark:text-white'),
WSwitch(value: false, onChanged: (v) {}, semanticLabel: 'Charge on cheap rates', thumbClassName: 'size-6 rounded-full bg-white dark:bg-white', className: '''
w-12 h-7 rounded-full
justify-start checked:justify-end
bg-neutral-700 dark:bg-neutral-700
checked:bg-green-500 dark:checked:bg-green-500
hover:ring-2 focus:ring-2
ring-neutral-400 dark:ring-neutral-400
disabled:opacity-50
'''),
]),
]),
WText('Your car uses the grid, not the home battery.', className: '''
px-4 pt-2
text-sm
text-neutral-400 dark:text-neutral-400
'''),
],
)
More like this
-
A charging receipt that separates the final cost from the card hold
Make public charging costs easy to reconcile: energy, session fees and idle time add up on a paper receipt, with the released card hold explained below. Wind
WTextrows keep every amount aligned. -
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
WSwitchcontrols to separate the proof from personal details before approval. -
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
WCardand theme-paired Wind classes.