departureFlightSection method
Column
departureFlightSection( - int departureDiff
)
Implementation
Column departureFlightSection(int departureDiff) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
departureTime,
style: const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: ColorHelper.neutralMediumText,
),
),
Text(
departureAirport,
style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
color: ColorHelper.neutralLightText,
),
),
if (departureDate != null && departureDiff > 0)
Text(
firstDate == null
? departureDate ?? ''
: '+$departureDiff Day, ${DateFormat('dd-MM-yyyy').format(DateTime.parse(departureDate!))}',
style: const TextStyle(
fontSize: 10,
fontWeight: FontWeight.w500,
color: ColorHelper.primaryPurple,
),
),
],
);
}