addonsPerks1 static method
Implementation
static List<Widget> addonsPerks1(Datum package) {
const style1 = TextStyle(
fontWeight: FontWeight.w600,
color: ColorHelper.neutralDark,
);
const style2 = TextStyle(
fontWeight: FontWeight.w500,
color: ColorHelper.primaryColor2,
);
return [
_richText([
const TextSpan(text: 'Flight Booking Privileges:', style: style1),
TextSpan(
text:
' Add -On ${valueText(package.maxExclusiveBookings)} flights',
style: style2),
const TextSpan(text: ' within a 12- months period. '),
TextSpan(
text:
'Total ${valueText(package.adultPassengerLimit)} adult passengers.',
style: style2),
const TextSpan(text: ' Unlimited children under 18 years.'),
]),
// if (package.planType != PlanType.singlePass) ...[
// 16.dp.SpaceX,
// _richText([
// const TextSpan(text: 'Neo-Miles Bonus:', style: style1),
// const TextSpan(text: ' Receive your first '),
// const TextSpan(text: 'Add-on XYZ Neo Miles.', style: style2),
// ]),
// ],
];
}