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.
main.dart
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'
),
),
),
],
)
Stats
- Views
- 2
- Stars
- 0
- Revisions
- 1
- Size
- 7,772 chars
- Created
- Jul 25, 2026