Live location sharing with a clear off switch
Make sharing feel safe: a bold expiry countdown, named recipients and a visible stop action put control first. A copy-ready location session card with rounded-3xl surfaces and paired light and dark tokens.
WCard(
className: '''
w-full p-5 rounded-3xl border
bg-white dark:bg-slate-950
border-slate-200 dark:border-slate-800
''',
header: WDiv(className: 'flex flex-row items-center gap-3', children: [
WIcon(Icons.location_on, className: 'size-6 text-slate-900 dark:text-slate-100'),
WText('Walk home', className: '''
flex-1 text-lg font-semibold
text-slate-950 dark:text-white
'''),
WBadge('LIVE', className: '''
px-3 py-1
bg-slate-100 dark:bg-slate-800
text-slate-700 dark:text-slate-200
'''),
]),
footer: WDiv(className: 'flex flex-col gap-3', children: [
WButton(
onTap: () {},
className: '''
w-full py-4 rounded-2xl
bg-slate-900 dark:bg-slate-100
hover:bg-slate-700 dark:hover:bg-white
focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400
disabled:opacity-50
''',
child: WText('Stop sharing', className: '''
text-center font-semibold
text-white dark:text-slate-950
'''),
),
WText('Your location is only visible during this session.', className: '''
text-xs text-center
text-slate-500 dark:text-slate-400
'''),
]),
child: WDiv(className: 'flex flex-col gap-5 py-5', children: [
WDiv(className: '''
p-5 rounded-3xl
bg-emerald-100 dark:bg-emerald-300
''', children: [
WDiv(className: 'flex flex-row items-center gap-2', children: [
WIcon(Icons.shield, className: 'size-5 text-emerald-950 dark:text-emerald-950'),
WText('SHARING ENDS IN', className: '''
text-xs font-semibold tracking-widest
text-emerald-950 dark:text-emerald-950
'''),
]),
WSpacer(className: 'h-4'),
WText('45 min', className: '''
text-6xl font-bold tracking-tight
text-emerald-950 dark:text-emerald-950
'''),
WSpacer(className: 'h-3'),
WText('Automatically stops at 10:45 pm', className: '''
text-sm
text-emerald-900 dark:text-emerald-950
'''),
]),
WDiv(className: 'flex flex-row items-center gap-2', children: [
WText('Visible to 2 people', className: '''
flex-1 text-sm font-semibold
text-slate-900 dark:text-slate-100
'''),
WIcon(Icons.lock, className: 'size-4 text-slate-500 dark:text-slate-400'),
WText('Invite only', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WDiv(className: 'flex flex-row items-center gap-3', children: [
WDiv(className: '''
flex flex-col items-center justify-center
size-11 rounded-full
bg-slate-100 dark:bg-slate-800
''', child: WText('AL', className: 'font-semibold text-slate-700 dark:text-slate-200')),
WDiv(className: 'flex-1 flex flex-col gap-1', children: [
WText('Alex Lee', className: 'font-medium text-slate-900 dark:text-slate-100'),
WText('Opened just now', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WIcon(Icons.visibility, className: 'size-5 text-slate-500 dark:text-slate-400'),
]),
WDiv(className: 'flex flex-row items-center gap-3', children: [
WDiv(className: '''
flex flex-col items-center justify-center
size-11 rounded-full
bg-slate-100 dark:bg-slate-800
''', child: WText('MK', className: 'font-semibold text-slate-700 dark:text-slate-200')),
WDiv(className: 'flex-1 flex flex-col gap-1', children: [
WText('Maya Kim', className: 'font-medium text-slate-900 dark:text-slate-100'),
WText('Invite accepted', className: 'text-xs text-slate-500 dark:text-slate-400'),
]),
WIcon(Icons.check_circle, className: 'size-5 text-slate-500 dark:text-slate-400'),
]),
]),
)
More like this
-
Cooking timers that keep dinner in sync
Keep the next kitchen task impossible to miss: a bold countdown, a named second timer and a clear next move. A compact cooking companion built with
WCard, warm orange and quiet secondary controls. -
A focus shield that makes the rules clear before you start
Protect a work session without hiding the escape hatch. A warm hero, explicit blocked categories and always-available essentials make a focus commitment easy to trust. Built with
WCardand a clear start action. -
An instant resale offer that makes your take-home price clear
Turn unused gear into a confident decision: a bold cash offer, an honest fee breakdown and free pickup in one compact resale screen. Built with
WCardand paired light/dark tokens, ready to copy into Flutter.