Skip to content
Türkçe
All snippets

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
  • WIcon
  • WText
  • WBadge
  • WCard
  • WButton
preview
a_focus_shield_that_makes_the_rules_clea_5d3moh.dart
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
    '''),
  ]),
)
  • 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
    • WDiv
    • WIcon
    • WText
    • WBadge
    • WButton
    • WSpacer
  • 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.

    • WDiv
    • WIcon
    • WText
    • WBadge
    • WSpacer
    • WCard
    • WButton
  • 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 WCard and paired light/dark tokens, ready to copy into Flutter.

    • WDiv
    • WCard
    • WIcon
    • WText
    • WBadge
    • WButton