Flutter Messages Inbox List with Unread Badges

A messaging inbox list with gradient avatars, last-message previews, timestamps, and unread count badges. Built with Wind utility classes and full dark-mode pairing.

Anılcan Çakır by Anılcan Çakır 2 views 0 stars 9 hours ago Rev 2
Flutter Messages Inbox List with Unread Badges preview
main.dart
WDiv(
  className: 'max-w-sm w-full mx-auto p-5 rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl',
  children: [
    WDiv(
      className: 'flex flex-row items-center justify-between w-full mb-4',
      children: [
        WText(
          'Messages',
          className: 'text-gray-900 dark:text-white text-xl font-bold'
        ),
        WButton(
          className: 'w-9 h-9 rounded-full bg-indigo-50 dark:bg-indigo-950 flex flex-row items-center justify-center',
          child: WIcon(
            Icons.edit,
            className: 'text-indigo-600 dark:text-indigo-400 text-base'
          ),
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full py-2',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'w-11 h-11 rounded-full bg-gradient-to-br from-rose-400 to-pink-500 flex flex-row items-center justify-center mr-3',
              child: WText(
                'S',
                className: 'text-white dark:text-white text-base font-bold'
              ),
            ),
            WDiv(
              className: 'flex flex-col',
              children: [
                WText(
                  'Sarah Chen',
                  className: 'text-gray-900 dark:text-white text-sm font-semibold'
                ),
                WText(
                  'Sounds great, see you at 3!',
                  className: 'text-gray-400 dark:text-gray-500 text-xs'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-col items-end',
          children: [
            WText(
              '2m',
              className: 'text-gray-400 dark:text-gray-500 text-xs mb-1'
            ),
            WDiv(
              className: 'w-5 h-5 rounded-full bg-indigo-600 dark:bg-indigo-500 flex flex-row items-center justify-center',
              child: WText(
                '2',
                className: 'text-white dark:text-white text-xs font-bold'
              ),
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'h-px w-full bg-gray-100 dark:bg-gray-800',
      children: []
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full py-2',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'w-11 h-11 rounded-full bg-gradient-to-br from-indigo-400 to-blue-500 flex flex-row items-center justify-center mr-3',
              child: WIcon(
                Icons.person,
                className: 'text-white dark:text-white text-lg'
              ),
            ),
            WDiv(
              className: 'flex flex-col',
              children: [
                WText(
                  'Design Team',
                  className: 'text-gray-900 dark:text-white text-sm font-semibold'
                ),
                WText(
                  'Alex shared the new mockups',
                  className: 'text-gray-400 dark:text-gray-500 text-xs'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-col items-end',
          children: [
            WText(
              '18m',
              className: 'text-gray-400 dark:text-gray-500 text-xs mb-1'
            ),
            WDiv(
              className: 'w-5 h-5 rounded-full bg-indigo-600 dark:bg-indigo-500 flex flex-row items-center justify-center',
              child: WText(
                '5',
                className: 'text-white dark:text-white text-xs font-bold'
              ),
            ),
          ],
        ),
      ],
    ),
    WDiv(
      className: 'h-px w-full bg-gray-100 dark:bg-gray-800',
      children: []
    ),
    WDiv(
      className: 'flex flex-row items-center justify-between w-full py-2',
      children: [
        WDiv(
          className: 'flex flex-row items-center',
          children: [
            WDiv(
              className: 'w-11 h-11 rounded-full bg-gradient-to-br from-emerald-400 to-teal-500 flex flex-row items-center justify-center mr-3',
              child: WText(
                'M',
                className: 'text-white dark:text-white text-base font-bold'
              ),
            ),
            WDiv(
              className: 'flex flex-col',
              children: [
                WText(
                  'Marcus Lee',
                  className: 'text-gray-500 dark:text-gray-400 text-sm font-medium'
                ),
                WText(
                  'Thanks for the quick update',
                  className: 'text-gray-400 dark:text-gray-500 text-xs'
                ),
              ],
            ),
          ],
        ),
        WDiv(
          className: 'flex flex-col items-end',
          children: [
            WText(
              '1h',
              className: 'text-gray-400 dark:text-gray-500 text-xs mb-1'
            ),
            WIcon(
              Icons.check,
              className: 'text-emerald-500 dark:text-emerald-400 text-base'
            ),
          ],
        ),
      ],
    ),
  ],
)
Stats
Views
2
Stars
0
Revisions
2
Size
5,270 chars
Created
Jun 24, 2026