Flutter Place Preview Card with Gradient Map Header
A venue preview card with a gradient map header and location pin, a rating and distance row, a category badge, and open-now and Wi-Fi attribute pills. Built with Wind's Tailwind-style className and full dark-mode support.
main.dart
WDiv(
className: 'flex flex-col max-w-sm w-full rounded-3xl overflow-hidden 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-center w-full h-36 bg-gradient-to-br from-emerald-400 to-teal-600 dark:from-emerald-600 dark:to-teal-800',
child: WDiv(
className: 'flex flex-row items-center justify-center w-16 h-16 rounded-full bg-white dark:bg-gray-900 shadow-lg',
child: WIcon(
Icons.location_on,
className: 'text-3xl text-teal-600 dark:text-teal-400'
),
),
),
WDiv(
className: 'flex flex-col p-5',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full mb-2',
children: [
WText(
'Blue Bottle Coffee',
className: 'text-lg font-bold text-gray-900 dark:text-white'
),
WDiv(
className: 'rounded-full px-3 py-1 bg-amber-50 dark:bg-amber-950',
child: WText(
'Cafe',
className: 'text-xs font-semibold text-amber-700 dark:text-amber-300'
),
),
],
),
WDiv(
className: 'flex flex-row items-center mb-4',
children: [
WIcon(
Icons.star,
className: 'text-base text-amber-400 dark:text-amber-300 mr-1'
),
WText(
'4.8',
className: 'text-sm font-bold text-gray-900 dark:text-white mr-1'
),
WText(
'(212 reviews)',
className: 'text-sm text-gray-500 dark:text-gray-400 mr-3'
),
WIcon(
Icons.location_on,
className: 'text-base text-gray-400 dark:text-gray-500 mr-1'
),
WText(
'1.2 km',
className: 'text-sm text-gray-500 dark:text-gray-400'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'flex flex-row items-center rounded-full px-3 py-1 bg-emerald-50 dark:bg-emerald-950 mr-2',
children: [
WDiv(
className: 'w-2 h-2 rounded-full bg-emerald-500 dark:bg-emerald-400 mr-2',
child: WSpacer(),
),
WText(
'Open now',
className: 'text-xs font-semibold text-emerald-700 dark:text-emerald-300'
),
],
),
WDiv(
className: 'flex flex-row items-center rounded-full px-3 py-1 bg-gray-100 dark:bg-gray-800',
children: [
WIcon(
Icons.wifi,
className: 'text-sm text-gray-500 dark:text-gray-400 mr-1'
),
WText(
'Free Wi-Fi',
className: 'text-xs font-semibold text-gray-700 dark:text-gray-200'
),
],
),
],
),
],
),
],
)
Stats
- Views
- 14
- Stars
- 0
- Revisions
- 1
- Size
- 3,194 chars
- Created
- Jun 16, 2026