Skip to content
Türkçe
All snippets

A baggage tracker that shows the last scan and the right carousel

Reassure arriving travelers with a scan-by-scan baggage route, a highlighted unloading stage and an assigned collection belt. A w-0.5 rail connects completed scans while the hollow final stop makes the next step clear.

preview
a_baggage_tracker_that_shows_the_last_sc_xkrjtf.dart
WDiv(
  className: '''
    flex flex-col gap-6 w-full px-6 py-10
    bg-teal-900 dark:bg-teal-950
  ''',
  children: [
    WDiv(className: 'flex flex-col gap-1', children: [
      WText('Your bag, step by step', className: '''
        text-2xl font-bold
        text-white dark:text-white
      '''),
      WText('Istanbul to Antalya · 25 Nov', className: 'text-sm text-teal-200 dark:text-teal-200'),
      WText('Bag tag 084 716 239', className: 'text-xs text-teal-300 dark:text-teal-300'),
    ]),
    WDiv(className: 'flex flex-col', children: [
      WDiv(className: 'flex flex-row items-start gap-4', children: [
        WDiv(className: 'flex flex-col items-center w-6', children: [
          WDiv(className: '''
            size-5 rounded-full
            bg-teal-300 dark:bg-teal-300
          '''),
          WDiv(className: 'h-12 w-0.5 bg-teal-600 dark:bg-teal-600'),
        ]),
        WDiv(className: 'flex flex-col flex-1 pb-6', children: [
          WText('Checked in', className: '''
            text-lg font-semibold
            text-teal-200 dark:text-teal-200
          '''),
          WText('17:55 · Istanbul bag drop', className: 'text-xs text-teal-300 dark:text-teal-300'),
        ]),
      ]),
      WDiv(className: 'flex flex-row items-start gap-4', children: [
        WDiv(className: 'flex flex-col items-center w-6', children: [
          WDiv(className: '''
            size-5 rounded-full
            bg-teal-300 dark:bg-teal-300
          '''),
          WDiv(className: 'h-12 w-0.5 bg-teal-600 dark:bg-teal-600'),
        ]),
        WDiv(className: 'flex flex-col flex-1 pb-6', children: [
          WText('Loaded on board', className: '''
            text-lg font-semibold
            text-teal-200 dark:text-teal-200
          '''),
          WText('18:30 · Departure scan', className: 'text-xs text-teal-300 dark:text-teal-300'),
        ]),
      ]),
      WDiv(className: 'flex flex-row items-start gap-4', children: [
        WDiv(className: 'flex flex-col items-center w-6', children: [
          WDiv(className: '''
            size-6 rounded-full border-4
            border-teal-400 dark:border-teal-400
          '''),
          WDiv(className: 'h-11 w-0.5 bg-teal-600 dark:bg-teal-600'),
        ]),
        WCard(className: '''
          flex-1 px-3 py-2 mb-2 rounded-lg
          bg-teal-400 dark:bg-teal-400
        ''', child: WDiv(className: 'flex flex-col', children: [
          WText('Bag unloaded', className: '''
            text-lg font-semibold
            text-teal-950 dark:text-teal-950
          '''),
          WText('19:49 · Antalya scan', className: 'text-xs text-teal-950 dark:text-teal-950'),
        ])),
      ]),
      WDiv(className: 'flex flex-row items-start gap-4', children: [
        WDiv(className: 'flex flex-col items-center w-6', children: [
          WDiv(className: '''
            size-5 rounded-full border-2
            border-teal-500 dark:border-teal-500
          '''),
        ]),
        WDiv(className: 'flex flex-col flex-1', children: [
          WText('Collect at belt 07', className: '''
            text-lg font-semibold
            text-teal-200 dark:text-teal-200
          '''),
          WText('Expected 20:05 · Domestic arrivals', className: 'text-xs text-teal-300 dark:text-teal-300'),
        ]),
      ]),
    ]),
    WText('Belt assigned. Your bag is not on it yet.', className: 'text-sm text-teal-200 dark:text-teal-200'),
  ],
)
  • A payee warning that makes pausing a payment the easy choice

    Give people a useful exit when a recipient name does not match. A lime warning poster puts the mismatch in large type and offers one clear save-for-later action, built with a keyboard-accessible WButton.

    • WDiv
    • WIcon
    • WText
    • WButton
  • A hotel room pass that puts the door and checkout time in reach

    Give checked-in guests a room pass they can read at a glance: floor, tap-to-open access and the exact key expiry. A paper stub with overflow-hidden keeps the perforation and oversized room number unmistakable.

    • WDiv
    • WText
    • WBadge
  • A refund choice that keeps your money yours

    Compare store credit with money back to the original card, without hiding either option. Equal WCard panels show the bonus, timing and spending limits before the shopper confirms.

    • WDiv
    • WText
    • WCard
    • WBadge
    • WButton