Flutter eSIM Data Plan Card with Segmented Block Meters

A mobile plan usage card that trades the usual continuous progress bar for discrete lit blocks, so data, minutes, and texts can be read at a glance. Adds a burn-rate warning, a roaming row, and a top-up CTA, all styled with Wind utility classes and full dark-mode pairs.

Anılcan Çakır by Anılcan Çakır 29 views 0 stars 6 days ago Rev 1
Flutter eSIM Data Plan Card with Segmented Block Meters preview
main.dart
WDiv(
  className: 'max-w-sm rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 p-6 shadow-xl',
  children: [
    WDiv(
      className: 'flex flex-row items-center justify-between w-full',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'flex flex-row items-center justify-center w-11 h-11 rounded-2xl bg-indigo-500 dark:bg-indigo-500',
              child: WIcon(
                Icons.wifi,
                className: 'text-white text-xl'
              ),
            ),
            WDiv(
              className: 'flex flex-col ml-3',
              children: [
                WText(
                  'Nomad 10 GB',
                  className: 'text-base font-bold text-gray-900 dark:text-white'
                ),
                WText(
                  'eSIM ending 4471',
                  className: 'text-xs text-gray-500 dark:text-gray-400 mt-0.5'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'rounded-full bg-indigo-100 dark:bg-indigo-500 px-2.5 py-1',
          child: WText(
            '6 days left',
            className: 'text-[11px] font-bold text-indigo-700 dark:text-white'
          ),
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full mt-6',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WIcon(
              Icons.cloud,
              className: 'text-indigo-500 dark:text-indigo-400 text-sm'
            ),
            WText(
              'Data',
              className: 'text-xs font-semibold text-gray-900 dark:text-white ml-2'
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WText(
              '4.2',
              className: 'text-xs font-bold text-gray-900 dark:text-white'
            ),
            WText(
              'of 10 GB',
              className: 'text-xs text-gray-400 dark:text-gray-500 ml-1'
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center w-full gap-1 mt-2',
      children: [
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-indigo-500 dark:bg-indigo-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-indigo-500 dark:bg-indigo-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-indigo-500 dark:bg-indigo-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full mt-5',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WIcon(
              Icons.schedule,
              className: 'text-emerald-500 dark:text-emerald-400 text-sm'
            ),
            WText(
              'Minutes',
              className: 'text-xs font-semibold text-gray-900 dark:text-white ml-2'
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WText(
              '340',
              className: 'text-xs font-bold text-gray-900 dark:text-white'
            ),
            WText(
              'of 500',
              className: 'text-xs text-gray-400 dark:text-gray-500 ml-1'
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center w-full gap-1 mt-2',
      children: [
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-emerald-500 dark:bg-emerald-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-emerald-500 dark:bg-emerald-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-emerald-500 dark:bg-emerald-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-emerald-500 dark:bg-emerald-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-emerald-500 dark:bg-emerald-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full mt-5',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WIcon(
              Icons.mail,
              className: 'text-amber-500 dark:text-amber-400 text-sm'
            ),
            WText(
              'Texts',
              className: 'text-xs font-semibold text-gray-900 dark:text-white ml-2'
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WText(
              '210',
              className: 'text-xs font-bold text-gray-900 dark:text-white'
            ),
            WText(
              'of 250',
              className: 'text-xs text-gray-400 dark:text-gray-500 ml-1'
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center w-full gap-1 mt-2',
      children: [
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-amber-500 dark:bg-amber-400'
        ),
        WDiv(
          className: 'w-[38px] h-2.5 rounded-sm bg-gray-200 dark:bg-gray-700'
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center w-full rounded-2xl bg-amber-50 dark:bg-gray-800 border border-amber-200 dark:border-amber-500 p-3 mt-5',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-center w-9 h-9 rounded-full bg-white dark:bg-gray-900',
          child: WIcon(
            Icons.warning,
            className: 'text-amber-500 dark:text-amber-400 text-sm'
          ),
        ),
        WDiv(
          className: 'flex flex-col ml-3',
          children: [
            WText(
              'Texts run out in about 2 days',
              className: 'text-xs font-semibold text-gray-900 dark:text-white'
            ),
            WText(
              'At your current pace of 34 per day',
              className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full rounded-2xl bg-gray-50 dark:bg-gray-800 px-3 py-2.5 mt-3',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WIcon(
              Icons.location_on,
              className: 'text-sky-500 dark:text-sky-400 text-sm'
            ),
            WText(
              'Roaming in Portugal',
              className: 'text-xs font-medium text-gray-900 dark:text-white ml-2'
            ),
          ],
        ),
        WText(
          'Included',
          className: 'text-[11px] font-bold text-emerald-600 dark:text-emerald-400'
        ),
      ],
    ),
    WDiv(
      className: 'w-full mt-5',
      child: WButton(
        className: 'flex flex-row items-center justify-center w-full rounded-2xl bg-indigo-500 dark:bg-indigo-500 py-3.5',
        child: WText(
          'Add 5 GB for $12',
          className: 'text-sm font-bold text-white dark:text-white'
        ),
      ),
    ),
    WDiv(
      className: 'flex flex-row items-center justify-center w-full mt-3',
      child: WText(
        'Renews Aug 8  |  Auto top-up is off',
        className: 'text-[11px] text-gray-400 dark:text-gray-500'
      ),
    ),
  ],
)
Stats
Views
29
Stars
0
Revisions
1
Size
8,986 chars
Created
Aug 2, 2026