Skip to content
Türkçe
All snippets

An office-day planner that puts your desk and team on the same schedule

See who is coming in and where your reserved desk fits around team time. A seven-day strip and duration-sized blocks make the office day easy to scan, using grid-cols-7 without a calendar package.

preview
an_office_day_planner_that_puts_your_des_ydmbvl.dart
WDiv(
  className: '''
    w-full px-5 py-8
    bg-teal-950 dark:bg-teal-950
  ''',
  child: WDiv(className: 'flex flex-col gap-5', children: [
    WDiv(className: 'flex flex-row items-end', children: [
      WText('November 2026', className: '''
        flex-1 text-2xl font-bold
        text-white dark:text-white
      '''),
      WText('6h in office', className: 'text-sm text-teal-200 dark:text-teal-200'),
    ]),
    WDiv(className: '''
      grid grid-cols-7 gap-1.5
      text-xs text-center
      text-teal-100 dark:text-teal-100
    ''', children: [
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('M\n23')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('T\n24')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('W\n25')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('T\n26')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-300 dark:bg-teal-300
        hover:bg-teal-200 dark:hover:bg-teal-200
        focus:ring-2 focus:ring-teal-100 dark:focus:ring-teal-100
      ''', child: WText('F\n27', className: 'font-bold text-teal-950 dark:text-teal-950')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('S\n28')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-teal-900 dark:bg-teal-900
        hover:bg-teal-800 dark:hover:bg-teal-800
        focus:ring-2 focus:ring-teal-200 dark:focus:ring-teal-200
      ''', child: WText('S\n29')),
    ]),
    WDiv(className: 'flex flex-col gap-1', children: [
      WText('Friday with your team', className: 'text-lg text-white dark:text-white'),
      WText('Mina, Eren + 4 others in today', className: 'text-sm text-teal-200 dark:text-teal-200'),
    ]),
    WDiv(className: '''
      flex flex-col gap-3
      text-sm text-white dark:text-white
    ''', children: [
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('09:00', className: 'w-12 text-xs text-teal-200 dark:text-teal-200'),
        WDiv(className: '''
          flex-1 h-36 p-3 rounded-md
          bg-teal-800 dark:bg-teal-800
        ''', child: WDiv(className: 'flex flex-col gap-2', children: [
          WText('Focus at desk 24'),
          WText('09:00 to 12:00', className: 'text-xs text-teal-100 dark:text-teal-100'),
          WText('Window side / Floor 2', className: 'text-xs text-teal-100 dark:text-teal-100'),
        ])),
      ]),
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('13:00', className: 'w-12 text-xs text-teal-200 dark:text-teal-200'),
        WDiv(className: '''
          flex-1 h-12 p-3 rounded-md
          bg-teal-800 dark:bg-teal-800
        ''', child: WText('Team workshop / 1h')),
      ]),
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('14:00', className: 'w-12 text-xs text-teal-200 dark:text-teal-200'),
        WDiv(className: '''
          flex-1 h-24 p-3 rounded-md
          bg-teal-800 dark:bg-teal-800
        ''', child: WDiv(className: 'flex flex-col gap-2', children: [
          WText('Back to desk 24'),
          WText('14:00 to 16:00', className: 'text-xs text-teal-100 dark:text-teal-100'),
        ])),
      ]),
    ]),
    WText('Today, Fri 27 Nov / Desk held until 16:00', className: 'text-xs text-teal-200 dark:text-teal-200'),
  ]),
)
  • A vocabulary dashboard that makes the review queue feel manageable

    Separate due words from new vocabulary and show a five-minute session before learners commit. An unequal bento layout keeps the next review prominent, with WButton tabs ready for app navigation.

    • WDiv
    • WText
    • WIcon
    • WButton
  • A screen-time stop that meets you at your daily limit

    Make the daily scrolling limit a moment to act, not another report to ignore. A full-colour stop sign with four oversized lines and one clear exit, built with WButton.

    • WDiv
    • WIcon
    • WText
    • WButton
  • 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