A refill dashboard that makes the shortest supply impossible to miss
Put the shortest medication supply first, with quieter tiles for stocked prescriptions and a pharmacy lead-time reminder. Unequal rounded-2xl tiles make refill planning readable at a glance.
WDiv(
className: '''
w-full px-3 py-6
flex flex-col gap-2
bg-zinc-950 dark:bg-zinc-950
''',
children: [
WDiv(className: 'flex flex-col px-1 pb-3', children: [
WText('Medicine cabinet', className: '''
text-2xl font-bold
text-white dark:text-white
'''),
WText('3 prescriptions · supply at a glance', className: '''
text-sm
text-zinc-400 dark:text-zinc-400
'''),
]),
WDiv(className: 'flex flex-row gap-2', children: [
WDiv(className: '''
flex-1 h-66 p-4 rounded-2xl
flex flex-col justify-between
bg-orange-500 dark:bg-orange-500
''', children: [
WIcon(Icons.inventory, className: 'size-8 text-zinc-950 dark:text-zinc-950'),
WDiv(className: 'flex flex-col gap-1', children: [
WText('Allergy tablets', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
WText('3 days', className: '''
text-3xl font-bold
text-zinc-950 dark:text-zinc-950
'''),
WText('3 tablets left', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
]),
WButton(onTap: () {}, className: '''
h-11 px-3 rounded-xl
flex items-center justify-center
bg-zinc-950 dark:bg-zinc-950
hover:bg-zinc-800 dark:hover:bg-zinc-800
focus:ring-2 focus:ring-white dark:focus:ring-white
disabled:opacity-50
''', child: WText('Request refill', className: 'text-sm text-white dark:text-white')),
]),
WDiv(className: 'flex-1 flex flex-col gap-2', children: [
WDiv(className: '''
h-32 p-4 rounded-2xl
flex flex-col justify-between
bg-zinc-800 dark:bg-zinc-800
''', children: [
WText('Blood pressure', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('18 days', className: '''
text-3xl font-bold
text-white dark:text-white
'''),
WText('18 tablets left', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
]),
WDiv(className: '''
h-32 p-4 rounded-2xl
flex flex-col justify-between
bg-zinc-800 dark:bg-zinc-800
''', children: [
WText('Thyroid tablets', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('26 days', className: '''
text-3xl font-bold
text-white dark:text-white
'''),
WText('26 tablets left', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
]),
]),
]),
WDiv(className: '''
h-24 px-4 rounded-2xl
flex flex-col justify-center gap-1
bg-zinc-800 dark:bg-zinc-800
''', children: [
WText('Cedar Pharmacy · refill preparation', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('Allow 2 days', className: '''
text-3xl font-bold
text-white dark:text-white
'''),
]),
WDiv(className: '''
flex flex-row gap-1 mt-3 p-1 rounded-2xl
bg-zinc-900 dark:bg-zinc-900
''', children: [
WButton(onTap: () {}, className: '''
w-28 h-11 rounded-xl flex items-center justify-center
bg-zinc-700 dark:bg-zinc-700
hover:bg-zinc-600 dark:hover:bg-zinc-600
focus:ring-2 focus:ring-white dark:focus:ring-white
disabled:opacity-50
''', child: WText('Supply', className: 'text-sm text-white dark:text-white')),
WButton(onTap: () {}, className: '''
w-28 h-11 rounded-xl flex items-center justify-center
hover:bg-zinc-800 dark:hover:bg-zinc-800
focus:ring-2 focus:ring-white dark:focus:ring-white
disabled:opacity-50
''', child: WText('Reminders', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
WButton(onTap: () {}, className: '''
w-28 h-11 rounded-xl flex items-center justify-center
hover:bg-zinc-800 dark:hover:bg-zinc-800
focus:ring-2 focus:ring-white dark:focus:ring-white
disabled:opacity-50
''', child: WText('History', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
]),
],
)
More like this
-
A payee warning that makes pausing a payment the easy choice
Give people a useful exit when a recipient name does not match. A lime warning poster puts the mismatch in large type and offers one clear save-for-later action, built with a keyboard-accessible
WButton. -
A baggage tracker that shows the last scan and the right carousel
Reassure arriving travelers with a scan-by-scan baggage route, a highlighted unloading stage and an assigned collection belt. A
w-0.5rail connects completed scans while the hollow final stop makes the next step clear. -
A hotel room pass that puts the door and checkout time in reach
Give checked-in guests a room pass they can read at a glance: floor, tap-to-open access and the exact key expiry. A paper stub with
overflow-hiddenkeeps the perforation and oversized room number unmistakable.