İptal edilen uçuşu yeni bir plana dönüştüren kart
Yolcuya sıradaki adımı net gösterin: iptal nedenini açıklayın, alternatif uçuşu sunun ve ücretsiz değişikliği görünür kılın. Sakin ve çözüm odaklı bir akış için WCard ile hazırlandı.
WDiv(
className: '''
w-full p-5
flex flex-col gap-5
bg-slate-50 dark:bg-slate-950
''',
children: [
WDiv(className: 'flex flex-row items-center gap-2', children: [
WIcon(Icons.flight, className: 'size-5 text-slate-700 dark:text-slate-300'),
WText('TRIP RECOVERY', className: '''
text-xs font-semibold tracking-widest
text-slate-600 dark:text-slate-400
'''),
]),
WText('A new way\nto get there.', className: '''
text-4xl font-bold leading-tight
text-slate-950 dark:text-white
'''),
WCard(
className: '''
p-4 rounded-2xl
bg-amber-200 dark:bg-amber-300
''',
child: WDiv(className: 'flex flex-col gap-2', children: [
WDiv(className: 'flex flex-row items-center gap-2', children: [
WIcon(Icons.info, className: 'size-5 text-amber-950 dark:text-amber-950'),
WText('Your 09:10 flight is canceled', className: '''
flex-1 text-sm font-bold
text-amber-950 dark:text-amber-950
'''),
]),
WText('High winds in Paris. Skip the queue and switch to the next available flight.', className: 'text-sm text-amber-950 dark:text-amber-950'),
]),
),
WCard(
className: '''
p-5 rounded-3xl border
border-slate-300 dark:border-slate-700
bg-white dark:bg-slate-900
''',
header: WDiv(className: 'flex flex-row items-center gap-2', children: [
WText('RECOMMENDED', className: '''
flex-1 text-xs font-semibold tracking-widest
text-slate-600 dark:text-slate-400
'''),
WBadge('Nonstop', className: '''
bg-slate-100 dark:bg-slate-800
text-slate-700 dark:text-slate-200
'''),
]),
footer: WDiv(className: 'flex flex-col gap-3', children: [
WDiv(className: 'flex flex-row items-center gap-2', children: [
WIcon(Icons.check_circle, className: 'size-4 text-slate-600 dark:text-slate-300'),
WText('Same cabin. No change fee.', className: 'text-sm text-slate-600 dark:text-slate-300'),
]),
WButton(
onTap: () {},
className: '''
w-full py-4 rounded-2xl
bg-slate-950 dark:bg-white
hover:bg-slate-800 dark:hover:bg-slate-200
focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400
disabled:opacity-50
''',
child: WText('Switch to this flight', className: '''
text-base font-semibold text-center
text-white dark:text-slate-950
'''),
),
]),
child: WDiv(className: 'flex flex-col gap-4 py-5', children: [
WText('Fri, 20 Nov 2026', className: 'text-sm text-slate-600 dark:text-slate-400'),
WDiv(className: 'flex flex-row items-center gap-3', children: [
WDiv(className: 'flex-1 flex flex-col gap-1', children: [
WText('CDG', className: '''
text-3xl font-bold
text-slate-950 dark:text-white
'''),
WText('Paris', className: 'text-sm text-slate-600 dark:text-slate-400'),
WText('10:30', className: '''
text-xl font-semibold
text-slate-950 dark:text-white
'''),
]),
WDiv(className: 'flex flex-col items-center gap-2', children: [
WIcon(Icons.arrow_forward, className: 'size-6 text-slate-500 dark:text-slate-400'),
WText('2h 10m', className: 'text-xs text-slate-600 dark:text-slate-400'),
]),
WDiv(className: 'flex-1 flex flex-col items-end gap-1', children: [
WText('FCO', className: '''
text-3xl font-bold
text-slate-950 dark:text-white
'''),
WText('Rome', className: 'text-sm text-slate-600 dark:text-slate-400'),
WText('12:40', className: '''
text-xl font-semibold
text-slate-950 dark:text-white
'''),
]),
]),
]),
),
WAnchor(
onTap: () {},
child: WText('Explore other flights', className: '''
py-3 text-center text-sm font-semibold
text-slate-700 dark:text-slate-300
hover:text-slate-950 dark:hover:text-white
focus:text-slate-950 dark:focus:text-white
underline
'''),
),
],
)
Benzer örnekler
-
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.