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 WCard and a clear start action.
WDiv(
className: '''
w-full p-5
bg-stone-100 dark:bg-stone-950
''',
child: WDiv(className: 'flex flex-col gap-5', children: [
WDiv(className: 'flex flex-row items-center gap-3', children: [
WIcon(Icons.shield, className: 'size-6 text-stone-900 dark:text-stone-100'),
WText('FOCUS SHIELD', className: '''
flex-1 text-xs font-bold tracking-widest
text-stone-700 dark:text-stone-300
'''),
WBadge('Ready', className: '''
px-3 py-1
bg-stone-200 dark:bg-stone-800
text-stone-700 dark:text-stone-300
'''),
]),
WCard(
className: '''
p-6 rounded-3xl
bg-orange-200 dark:bg-orange-200
''',
child: WDiv(className: 'flex flex-col gap-4', children: [
WText('Less noise.\nMore headspace.', className: '''
text-3xl font-bold leading-tight
text-stone-950 dark:text-stone-950
'''),
WDiv(className: 'flex flex-row items-end gap-2', children: [
WText('45', className: '''
text-6xl font-semibold tracking-tight
text-stone-950 dark:text-stone-950
'''),
WText('minutes for you', className: '''
pb-2 text-sm
text-stone-700 dark:text-stone-700
'''),
]),
WText('One quiet stretch to finish what matters.', className: 'text-sm text-stone-700 dark:text-stone-700'),
]),
),
WCard(
className: '''
p-4 rounded-2xl border
border-stone-300 dark:border-stone-700
bg-white dark:bg-stone-900
''',
child: WDiv(className: 'flex flex-col gap-4', children: [
WDiv(className: 'flex flex-row items-center gap-3', children: [
WIcon(Icons.lock, className: 'size-5 text-stone-600 dark:text-stone-400'),
WText('Distractions on pause', className: '''
flex-1 text-sm font-semibold
text-stone-900 dark:text-stone-100
'''),
WText('3 groups', className: 'text-xs text-stone-500 dark:text-stone-400'),
]),
WDiv(className: 'flex flex-row gap-2', children: [
WBadge('Social feeds', className: '''
px-3 py-2
bg-stone-100 dark:bg-stone-800
text-stone-700 dark:text-stone-300
'''),
WBadge('Games', className: '''
px-3 py-2
bg-stone-100 dark:bg-stone-800
text-stone-700 dark:text-stone-300
'''),
WBadge('Video', className: '''
px-3 py-2
bg-stone-100 dark:bg-stone-800
text-stone-700 dark:text-stone-300
'''),
]),
WDiv(className: 'flex flex-row items-center gap-3', children: [
WIcon(Icons.check_circle, className: 'size-5 text-stone-600 dark:text-stone-400'),
WText('Calls, maps and messages stay available.', className: '''
flex-1 text-xs leading-relaxed
text-stone-600 dark:text-stone-400
'''),
]),
]),
),
WButton(
onTap: () {},
className: '''
w-full py-4 rounded-2xl
bg-stone-900 dark:bg-stone-100
hover:bg-stone-700 dark:hover:bg-stone-300
focus:ring-2 focus:ring-stone-500 dark:focus:ring-stone-400
disabled:opacity-50
''',
child: WText('Start my 45 minutes', className: '''
text-center font-semibold
text-white dark:text-stone-950
'''),
),
WText('Need to leave? End the session anytime.', className: '''
text-center text-xs
text-stone-600 dark:text-stone-400
'''),
]),
)
More like this
-
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-3xlsurfaces and paired light and dark tokens. -
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. -
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.