Flutter Cafe Loyalty Stamp Card with Reward Progress

A digital coffee-shop loyalty card built with Wind for Flutter: a fill-the-grid stamp collection, a stamps-earned counter chip, and a redeem call to action. Shows how to build retail rewards UI with Tailwind-style className utilities and dark-mode-ready color pairs.

Anılcan Çakır by Anılcan Çakır 16 views 0 stars 5 days ago Rev 1
Flutter Cafe Loyalty Stamp Card with Reward Progress preview
main.dart
WDiv(
  className: 'max-w-sm w-full rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl p-6',
  children: [
    WDiv(
      className: 'flex flex-row items-center justify-between w-full',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'w-11 h-11 rounded-2xl bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-xl'
              ),
            ),
            WDiv(
              className: 'flex flex-col ml-3',
              children: [
                WText(
                  'Bean & Brew',
                  className: 'text-base font-bold text-gray-900 dark:text-white'
                ),
                WText(
                  'Loyalty Card',
                  className: 'text-xs text-gray-500 dark:text-gray-400'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'px-3 py-1 rounded-full bg-amber-100 dark:bg-amber-800',
          child: WText(
            '6 / 9',
            className: 'text-sm font-bold text-amber-700 dark:text-amber-100'
          ),
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-col gap-3 w-full mt-6',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full bg-amber-500 dark:bg-amber-600 flex flex-row items-center justify-center',
              child: WIcon(
                Icons.restaurant,
                className: 'text-white text-lg'
              ),
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WDiv(
              className: 'w-16 h-16 rounded-full border-2 border-amber-200 dark:border-gray-700 bg-amber-50 dark:bg-gray-800'
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full border-2 border-amber-200 dark:border-gray-700 bg-amber-50 dark:bg-gray-800'
            ),
            WDiv(
              className: 'w-16 h-16 rounded-full border-2 border-amber-200 dark:border-gray-700 bg-amber-50 dark:bg-gray-800'
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'w-full mt-6',
      child: WText(
        'Just 3 more stamps until your next free coffee',
        className: 'text-sm text-gray-600 dark:text-gray-300 text-center'
      ),
    ),
    WButton(
      className: 'w-full mt-4 rounded-2xl bg-amber-500 dark:bg-amber-600 py-3',
      child: WText(
        'View My Rewards',
        className: 'text-white text-center font-semibold text-sm'
      ),
    ),
  ],
)
Stats
Views
16
Stars
0
Revisions
1
Size
4,439 chars
Created
Jul 20, 2026