Skip to content
Türkçe
All snippets

A used-phone report that puts battery health beside the checks that matter

Give secondhand buyers a clear condition snapshot before they commit. Unequal diagnostic tiles put battery capacity, hardware results and activation status together, with a single bg-lime-400 tile highlighting the battery.

  • WDiv
  • WText
  • WIcon
  • WButton
preview
a_used_phone_report_that_puts_battery_he_3brkc9.dart
WDiv(
  className: '''
    w-full px-3 py-6
    flex flex-col gap-2
    bg-zinc-950 dark:bg-zinc-950
  ''',
  children: [
    WDiv(className: 'flex flex-col px-1 pb-3', children: [
      WText('Before you buy', className: '''
        text-2xl font-bold
        text-white dark:text-white
      '''),
      WText('128 GB · Checked 30 Nov 2026', className: 'text-sm text-zinc-400 dark:text-zinc-400'),
    ]),
    WDiv(className: 'flex flex-row gap-2', children: [
      WDiv(className: '''
        flex-1 h-66 p-4 rounded-2xl
        flex flex-col justify-between
        bg-lime-400 dark:bg-lime-400
      ''', children: [
        WIcon(Icons.bolt, className: 'size-8 text-zinc-950 dark:text-zinc-950'),
        WDiv(className: 'flex flex-col gap-1', children: [
          WText('Battery capacity', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
          WText('91%', className: '''
            text-3xl font-bold
            text-zinc-950 dark:text-zinc-950
          '''),
          WText('of original capacity', className: 'text-xs text-zinc-800 dark:text-zinc-800'),
        ]),
      ]),
      WDiv(className: 'flex-1 flex flex-col gap-2', children: [
        WDiv(className: '''
          h-32 p-4 rounded-2xl
          flex flex-col justify-between
          bg-zinc-800 dark:bg-zinc-800
        ''', children: [
          WText('Hardware tests', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
          WText('32/32', className: '''
            text-3xl font-bold
            text-white dark:text-white
          '''),
          WText('All checks passed', className: 'text-xs text-zinc-300 dark:text-zinc-300'),
        ]),
        WDiv(className: '''
          h-32 p-4 rounded-2xl
          flex flex-col justify-between
          bg-zinc-800 dark:bg-zinc-800
        ''', children: [
          WText('Activation lock', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
          WText('Clear', className: '''
            text-3xl font-bold
            text-white dark:text-white
          '''),
          WText('Ready for a new owner', className: 'text-xs text-zinc-300 dark:text-zinc-300'),
        ]),
      ]),
    ]),
    WDiv(className: '''
      h-24 px-4 rounded-2xl
      flex flex-col justify-center
      bg-zinc-800 dark:bg-zinc-800
    ''', children: [
      WText('Exterior inspection', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
      WText('Light wear', className: '''
        text-3xl font-bold
        text-white dark:text-white
      '''),
      WText('Small marks on the frame', className: 'text-xs text-zinc-300 dark:text-zinc-300'),
    ]),
    WDiv(className: '''
      flex flex-row gap-1 mt-3 p-1 rounded-2xl
      bg-zinc-900 dark:bg-zinc-900
    ''', children: [
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        bg-zinc-700 dark:bg-zinc-700
        hover:bg-zinc-600 dark:hover:bg-zinc-600
        focus:ring-2 focus:ring-white dark:focus:ring-white
        disabled:opacity-50
      ''', child: WText('Condition', className: 'text-sm text-white dark:text-white')),
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        hover:bg-zinc-800 dark:hover:bg-zinc-800
        focus:ring-2 focus:ring-white dark:focus:ring-white
        disabled:opacity-50
      ''', child: WText('Test log', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        hover:bg-zinc-800 dark:hover:bg-zinc-800
        focus:ring-2 focus:ring-white dark:focus:ring-white
        disabled:opacity-50
      ''', child: WText('Photos', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
    ]),
  ],
)
  • A surplus bakery offer that puts the pickup window beside the price

    Make an end-of-day bakery bag easy to act on: one price, a clear collection window and a reservation button. The full-colour poster uses text-6xl lines to keep the offer readable at a glance.

    • WDiv
    • WIcon
    • WText
    • WButton
  • A running interval timer that keeps the next recovery in sight

    Keep each running repetition easy to follow with a large countdown, twelve progress ticks and the next recovery visible before it starts. A rounded-full dial puts pause and skip within thumb reach.

    • WDiv
    • WText
    • WButton
    • WIcon
  • A shopping conversation that checks gift returns before checkout

    Help gift shoppers check the catch before they buy. Alternating chat bubbles explain open-box returns, a source link makes the answer traceable, and a WInput composer keeps follow-up questions close.

    • WDiv
    • WIcon
    • WText
    • WAnchor
    • WButton
    • WInput