Flutter Restaurant Floor Plan Card with Table Occupancy Status
A host stand card that lays out a real dining room: round tops, banquette booths, a communal eight top and a bar with stools, each table coloured free, seated or held. Built with Wind utility classes over WDynamic, every table is an absolutely positioned div at a fixed pixel coordinate, so the plan needs no canvas and no image assets.
main.dart
WDiv(
className: 'flex flex-col w-[340px] rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 p-5',
children: [
WDiv(
className: 'flex flex-row items-center w-full',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-[38px] h-[38px] rounded-2xl bg-emerald-600 dark:bg-emerald-700',
child: WIcon(
Icons.restaurant,
className: 'text-xl text-white dark:text-white'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Dining room',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Saturday, 19:30 seating',
className: 'text-[11px] text-gray-500 dark:text-gray-400'
),
],
),
WDiv(
className: 'flex flex-row items-center ml-6 rounded-full bg-amber-100 dark:bg-amber-900 px-2 py-1',
child: WText(
'2 WAITING',
className: 'text-[9px] font-bold tracking-wide text-amber-700 dark:text-amber-300'
),
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full mt-4',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'6 of 12',
className: 'text-2xl font-bold text-gray-900 dark:text-white'
),
WText(
'TABLES IN USE',
className: 'text-[9px] font-bold tracking-widest text-gray-400 dark:text-gray-500'
),
],
),
WDiv(
className: 'flex flex-row items-center rounded-full bg-emerald-100 dark:bg-emerald-900 px-2 py-1',
child: WText(
'4 free now',
className: 'text-[10px] font-bold text-emerald-700 dark:text-emerald-300'
),
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full mt-5',
children: [
WText(
'FLOOR PLAN',
className: 'text-[9px] font-bold tracking-widest text-gray-400 dark:text-gray-500'
),
WText(
'NUMBER IS COVERS',
className: 'text-[9px] font-bold tracking-widest text-gray-400 dark:text-gray-500'
),
],
),
WDiv(
className: 'relative w-[300px] h-[204px] rounded-2xl bg-slate-100 dark:bg-slate-800 border border-gray-200 dark:border-gray-700 mt-2',
children: [
WDiv(
className: 'absolute left-[8px] top-[8px] flex flex-row items-center justify-center w-[150px] h-[20px] rounded-lg bg-gray-300 dark:bg-gray-600',
child: WText(
'BAR',
className: 'text-[9px] font-bold tracking-widest text-gray-700 dark:text-gray-200'
),
),
WText(
'ENTRANCE',
className: 'absolute left-[228px] top-[17px] text-[9px] font-bold tracking-wide text-gray-400 dark:text-gray-500'
),
WDiv(
className: 'absolute left-[234px] top-[8px] w-[58px] h-[4px] rounded-full bg-gray-400 dark:bg-gray-500'
),
WDiv(
className: 'absolute left-[30px] top-[32px] w-[8px] h-[8px] rounded-full bg-gray-400 dark:bg-gray-500'
),
WDiv(
className: 'absolute left-[62px] top-[32px] w-[8px] h-[8px] rounded-full bg-gray-400 dark:bg-gray-500'
),
WDiv(
className: 'absolute left-[94px] top-[32px] w-[8px] h-[8px] rounded-full bg-gray-400 dark:bg-gray-500'
),
WDiv(
className: 'absolute left-[126px] top-[32px] w-[8px] h-[8px] rounded-full bg-gray-400 dark:bg-gray-500'
),
WDiv(
className: 'absolute left-[20px] top-[42px] flex flex-row items-center justify-center w-[46px] h-[46px] rounded-full bg-rose-500 dark:bg-rose-600',
child: WText(
'4',
className: 'text-sm font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[92px] top-[42px] flex flex-row items-center justify-center w-[46px] h-[46px] rounded-full bg-emerald-500 dark:bg-emerald-600',
child: WText(
'4',
className: 'text-sm font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[164px] top-[42px] flex flex-row items-center justify-center w-[46px] h-[46px] rounded-full bg-rose-500 dark:bg-rose-600',
child: WText(
'4',
className: 'text-sm font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[24px] top-[104px] flex flex-row items-center justify-center w-[34px] h-[34px] rounded-full bg-emerald-500 dark:bg-emerald-600',
child: WText(
'2',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[78px] top-[104px] flex flex-row items-center justify-center w-[34px] h-[34px] rounded-full bg-rose-500 dark:bg-rose-600',
child: WText(
'2',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[132px] top-[104px] flex flex-row items-center justify-center w-[34px] h-[34px] rounded-full bg-rose-500 dark:bg-rose-600',
child: WText(
'2',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[166px] top-[150px] flex flex-row items-center justify-center w-[46px] h-[46px] rounded-full bg-amber-500 dark:bg-amber-600',
child: WText(
'4',
className: 'text-sm font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[20px] top-[154px] flex flex-row items-center justify-center w-[96px] h-[26px] rounded-lg bg-rose-500 dark:bg-rose-600',
child: WText(
'8',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[234px] top-[38px] flex flex-row items-center justify-center w-[58px] h-[34px] rounded-lg bg-amber-500 dark:bg-amber-600',
child: WText(
'2',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[234px] top-[86px] flex flex-row items-center justify-center w-[58px] h-[34px] rounded-lg bg-rose-500 dark:bg-rose-600',
child: WText(
'4',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[234px] top-[134px] flex flex-row items-center justify-center w-[58px] h-[34px] rounded-lg bg-emerald-500 dark:bg-emerald-600',
child: WText(
'6',
className: 'text-xs font-bold text-white dark:text-white'
),
),
WDiv(
className: 'absolute left-[124px] top-[154px] flex flex-row items-center justify-center w-[34px] h-[34px] rounded-full bg-emerald-500 dark:bg-emerald-600',
child: WText(
'2',
className: 'text-xs font-bold text-white dark:text-white'
),
),
],
),
WDiv(
className: 'flex flex-row items-center w-full mt-4',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-[10px] h-[10px] rounded-full bg-emerald-500 dark:bg-emerald-600'
),
WText(
'Free',
className: 'text-[10px] font-semibold text-gray-600 dark:text-gray-300 ml-2'
),
],
),
WDiv(
className: 'flex flex-row items-center ml-5',
children: [
WDiv(
className: 'w-[10px] h-[10px] rounded-full bg-rose-500 dark:bg-rose-600'
),
WText(
'Seated',
className: 'text-[10px] font-semibold text-gray-600 dark:text-gray-300 ml-2'
),
],
),
WDiv(
className: 'flex flex-row items-center ml-5',
children: [
WDiv(
className: 'w-[10px] h-[10px] rounded-full bg-amber-500 dark:bg-amber-600'
),
WText(
'Held',
className: 'text-[10px] font-semibold text-gray-600 dark:text-gray-300 ml-2'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center w-full mt-4',
children: [
WIcon(
Icons.schedule,
className: 'text-base text-emerald-600 dark:text-emerald-400'
),
WText(
'The eight top clears at 20:15.',
className: 'text-[11px] text-gray-600 dark:text-gray-300 ml-2'
),
],
),
WDiv(
className: 'w-full mt-4',
child: WButton(
className: 'flex flex-row items-center justify-center w-full rounded-2xl bg-gray-900 dark:bg-white py-3',
child: WText(
'Seat the next party',
className: 'text-sm font-semibold text-white dark:text-gray-900'
),
),
),
],
)
Stats
- Views
- 106
- Stars
- 0
- Revisions
- 1
- Size
- 9,483 chars
- Created
- Sep 16, 2026