Flutter Empty State with Icon and Call to Action
An empty-state panel with a muted icon, a headline, a short explanation, and a call-to-action button. A friendly no-data screen built with Wind UI utilities.
WDiv(
className: 'mx-auto max-w-sm flex flex-col items-center gap-4 rounded-2xl border p-10 bg-white border-gray-200 dark:bg-gray-900 dark:border-gray-800',
children: [
WDiv(
className: 'flex items-center justify-center w-20 h-20 rounded-full bg-gray-100 dark:bg-gray-800',
child: WIcon(
Icons.search,
className: 'text-gray-400 text-4xl dark:text-gray-500'
)
),
WText(
'No results found',
className: 'text-lg font-bold text-gray-900 dark:text-white'
),
WText(
'We could not find anything matching your search. Try a different keyword or clear the filters.',
className: 'text-sm text-gray-500 dark:text-gray-400 text-center leading-relaxed'
),
WButton(
className: 'rounded-xl px-5 py-2.5 bg-indigo-600 hover:bg-indigo-500 dark:bg-indigo-500 dark:hover:bg-indigo-400',
child: WDiv(
className: 'flex flex-row items-center gap-2',
children: [
WIcon(
Icons.refresh,
className: 'text-white text-base'
),
WText(
'Clear filters',
className: 'text-sm font-semibold text-white'
)
]
),
),
],
)
More like this
-
Flutter Progress Stepper Wizard with Plan Selection
A multi-step wizard header with a connected step rail (completed, active, and upcoming states) over a plan selection step and a continue button, all composed from Wind utility classes.
-
Flutter Onboarding Slide with Feature Highlight and Page Dots
A polished onboarding slide built with Wind utility classes: a gradient feature icon, a bold headline, supporting copy, page indicator dots, and a full-width call to action. Dark mode pairs are included on every color token.
-
Flutter Component Search Card with Live Suggestions
A component search card built on the real WInput widget, with a focused search field and a categorized suggestion list. Demonstrates Wind form inputs with icon tiles and dark-mode pairs.