Flutter Transit Departure Board Card with Live Line Times
A live departure board for a transit stop: coloured line-number tiles, destination rows with on time and delayed states, countdown times, a last-updated footnote and a route planner action. A good example of Wind rows that pair a fixed square badge with a two-line label and a right-aligned value.
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-indigo-50 dark:bg-indigo-900 flex flex-row items-center justify-center',
child: WIcon(
Icons.directions_car,
className: 'text-indigo-600 dark:text-indigo-300 text-xl'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Central Station',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Platform 2 | 4 departures',
className: 'text-xs text-gray-500 dark:text-gray-400'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center px-3 py-1 rounded-full bg-emerald-100 dark:bg-emerald-800',
children: [
WDiv(
className: 'w-2 h-2 rounded-full bg-emerald-500 dark:bg-emerald-300'
),
WText(
'Live',
className: 'text-xs font-semibold text-emerald-700 dark:text-emerald-100 ml-1.5'
),
],
),
],
),
WDiv(
className: 'flex flex-col gap-4 w-full mt-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-9 h-9 rounded-xl bg-indigo-500 dark:bg-indigo-400 flex flex-row items-center justify-center',
child: WText(
'12',
className: 'text-sm font-bold text-white'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Riverside Mall',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'On time',
className: 'text-xs font-medium text-emerald-600 dark:text-emerald-400'
),
],
),
],
),
WText(
'3 min',
className: 'text-sm font-bold text-gray-900 dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-9 h-9 rounded-xl bg-amber-500 dark:bg-amber-400 flex flex-row items-center justify-center',
child: WText(
'44',
className: 'text-sm font-bold text-white'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Old Town Square',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Delayed 4 min',
className: 'text-xs font-medium text-amber-600 dark:text-amber-400'
),
],
),
],
),
WText(
'7 min',
className: 'text-sm font-bold text-gray-900 dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-9 h-9 rounded-xl bg-sky-500 dark:bg-sky-400 flex flex-row items-center justify-center',
child: WText(
'9',
className: 'text-sm font-bold text-white'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Airport Terminal 2',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'On time',
className: 'text-xs font-medium text-emerald-600 dark:text-emerald-400'
),
],
),
],
),
WText(
'18 min',
className: 'text-sm font-bold text-gray-900 dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-9 h-9 rounded-xl bg-violet-500 dark:bg-violet-400 flex flex-row items-center justify-center',
child: WText(
'27',
className: 'text-sm font-bold text-white'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Harbour Point',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Last bus tonight',
className: 'text-xs font-medium text-gray-400 dark:text-gray-500'
),
],
),
],
),
WText(
'22 min',
className: 'text-sm font-bold text-gray-900 dark:text-white'
),
],
),
],
),
WDiv(
className: 'w-full border-t border-gray-100 dark:border-gray-800 mt-6'
),
WDiv(
className: 'flex flex-row items-center justify-between w-full mt-4',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WIcon(
Icons.schedule,
className: 'text-gray-400 dark:text-gray-500 text-sm'
),
WText(
'Updated 12 seconds ago',
className: 'text-xs text-gray-500 dark:text-gray-400 ml-1.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'Timetable',
className: 'text-xs font-semibold text-indigo-600 dark:text-indigo-400'
),
WIcon(
Icons.chevron_right,
className: 'text-indigo-600 dark:text-indigo-400 text-sm'
),
],
),
],
),
WDiv(
className: 'w-full mt-5',
child: WButton(
className: 'w-full rounded-2xl bg-indigo-600 dark:bg-indigo-500 py-3',
child: WText(
'Plan My Route',
className: 'text-white text-center font-semibold text-sm'
),
),
),
],
)
More like this
-
Flutter Navigation Lights Card with COLREGs Port, Starboard, Masthead and Stern Light Arcs
A Flutter navigation lights card for boating and marine apps: a night panel with a top-down hull ringed by the COLREGs Rule 21 arcs, red port and green starboard sidelights at 112.5 degrees, a 225 degree masthead ring, a 135 degree sternlight and Rule 22 visibility ranges. Built with wind_kit.
-
Flutter Runway Markings Card with Designator, Threshold Stripes and Aiming Point
A Flutter runway markings card for aviation and flight training apps: the approach end of runway 27 drawn to scale, with eight threshold stripes, the designator from a 268 degree heading, a dashed centreline and twin aiming point bars, each called out. Absolute positioning in wind_kit.
-
Flutter Container Ship Bay Plan Card with Colour Coded Port Stacks
A Flutter container ship bay plan card for logistics and terminal apps: a row-by-tier cross-section of Bay 14 with port and starboard row numbers, deck tiers above the hatch cover, a tapered hold, slots coloured by discharge port, plugged reefers and a stowage legend. Built with wind_kit.