Skip to content
Türkçe
All snippets

A multisport calendar that makes the ride-to-run handoff clear

Keep a brick workout in order with a seven-day strip and duration-sized session blocks. Today's ride, transition and run stay together on a tinted calendar, with grid-cols-7 keeping the week readable at phone width.

preview
a_multisport_calendar_that_makes_the_rid_jbqtnl.dart
WDiv(
  className: '''
    w-full px-5 py-8
    bg-violet-950 dark:bg-violet-950
  ''',
  child: WDiv(className: 'flex flex-col gap-5', children: [
    WText('November 2026', className: '''
      text-2xl font-bold
      text-white dark:text-white
    '''),
    WDiv(className: '''
      grid grid-cols-7 gap-1.5
      text-xs text-center
      text-violet-200 dark:text-violet-200
    ''', children: [
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('M\n16')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('T\n17')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('W\n18')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('T\n19')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('F\n20')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-900 dark:bg-violet-900
        hover:bg-violet-800 dark:hover:bg-violet-800
        focus:ring-2 focus:ring-violet-200 dark:focus:ring-violet-200
      ''', child: WText('S\n21')),
      WButton(onTap: () {}, className: '''
        h-16 flex items-center justify-center rounded-full
        bg-violet-300 dark:bg-violet-300
        hover:bg-violet-200 dark:hover:bg-violet-200
        focus:ring-2 focus:ring-violet-100 dark:focus:ring-violet-100
      ''', child: WText('S\n22', className: '''
        font-bold
        text-violet-950 dark:text-violet-950
      ''')),
    ]),
    WDiv(className: 'flex flex-row items-center', children: [
      WText('Sunday brick', className: '''
        flex-1 text-lg font-semibold
        text-white dark:text-white
      '''),
      WText('80 min', className: 'text-violet-200 dark:text-violet-200'),
    ]),
    WText('One session. Four connected steps.', className: '''
      text-sm
      text-violet-200 dark:text-violet-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('08:00', className: '''
          w-12 text-xs
          text-violet-200 dark:text-violet-200
        '''),
        WDiv(className: '''
          flex-1 h-12 p-3 rounded-md
          bg-violet-800 dark:bg-violet-800
        ''', child: WText('Warm-up spin · 10 min')),
      ]),
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('08:10', className: 'w-12 text-violet-200 dark:text-violet-200'),
        WDiv(className: '''
          flex-1 h-28 p-3 rounded-md
          bg-violet-800 dark:bg-violet-800
        ''', child: WDiv(className: 'flex flex-col gap-2', children: [
          WText('Endurance ride · 45 min'),
          WText('Steady effort, easy breathing', className: 'text-xs text-violet-200 dark:text-violet-200'),
        ])),
      ]),
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('08:55', className: 'w-12 text-violet-200 dark:text-violet-200'),
        WDiv(className: '''
          flex-1 h-10 px-3 py-2 rounded-md
          bg-violet-900 dark:bg-violet-900
        ''', child: WText('Shoes on · 5 min transition')),
      ]),
      WDiv(className: 'flex flex-row gap-3', children: [
        WText('09:00', className: 'w-12 text-violet-200 dark:text-violet-200'),
        WDiv(className: '''
          flex-1 h-18 p-3 rounded-md
          bg-violet-800 dark:bg-violet-800
        ''', child: WText('Easy run · 20 min')),
      ]),
    ]),
    WText('Today, Sun 22 Nov · Completed at 09:20', className: 'text-xs text-violet-200 dark:text-violet-200'),
  ]),
)
  • A sleep timer that lets the chapter finish

    Give bedtime listeners a clear stopping point: the current chapter ends before playback does. A quiet countdown, twelve progress ticks and two WButton controls keep the active timer easy to read and cancel.

    • WDiv
    • WText
    • WButton
    • WIcon
  • A spare-change receipt that shows how everyday spending becomes savings

    Make automatic savings easy to trust with an itemised spare-change receipt: three purchases, their round-ups and the exact amount moved to a travel fund. Paper styling and a heavy h-1 total rule keep every cent readable.

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