Implementation
static List<Widget> perks1(Datum package) {
const style1 = TextStyle(
fontWeight: FontWeight.w600,
color: ColorHelper.primaryColor1,
);
const style2 = TextStyle(
fontWeight: FontWeight.w600,
color: ColorHelper.primaryColor2,
);
switch (package.planType) {
// case PlanType.discoveryPass:
// return [
// _richText([
// const TextSpan(text: 'Access by Invitation-only:', style: style1),
// const TextSpan(
// text:
// ' Members can only be invited by members.')
// ]),
// 16.dp.SpaceX,
// _richText([
// const TextSpan(text: 'Platform Exploration:', style: style1),
// const TextSpan(
// text:
// ' View all services, benefits, and Exclusive PLUS Rates.')
// ]),
// 16.dp.SpaceX,
// _richText([
// const TextSpan(text: 'Search & Book unlimited Best Market Rate:', style: style1),
// const TextSpan(
// text: ' Flights, Hotels, Memories and more. All payable through '),
// const TextSpan(text: '900+ Cryptocurrencies', style: style2),
// const TextSpan(text: ' and '),
// const TextSpan(text: 'traditional payment options', style: style2),
// const TextSpan(text: '. Exclusive PLUS Rates are only available to Explorer Pass or higher.'),
// ]),
// ];
case PlanType.explorerPass:
return [
_flightsAndPassenger(style1, style2, package),
16.dp.SpaceX,
_hotelsBooking(style1, style2, package),
16.dp.SpaceX,
_loyaltyProgram(style1, style2, package),
16.dp.SpaceX,
_searchCredits(style1, style2, package),
16.dp.SpaceX,
_cryptoCurrencies (style1, style2, package),
];
case PlanType.signaturePass:
return [
_flightsAndPassenger(style1, style2, package),
16.dp.SpaceX,
_hotelsBooking(style1, style2, package),
16.dp.SpaceX,
_loyaltyProgram(style1, style2, package),
16.dp.SpaceX,
_searchCredits(style1, style2, package),
16.dp.SpaceX,
_cryptoCurrencies (style1, style2, package),
];
// case PlanType.elitePass:
// return [
// _flightsAndPassenger(style1, style2, package),
// 16.dp.SpaceX,
// _hotelsBooking(style1, style2, package),
// 16.dp.SpaceX,
// _loyaltyProgram(style1, style2, package),
// 16.dp.SpaceX,
// _searchCredits(style1, style2, package),
// 16.dp.SpaceX,
// _cryptoCurrencies (style1, style2, package),
// ];
case PlanType.prestigePass:
return [
_flightsAndPassenger(style1, style2, package),
16.dp.SpaceX,
_hotelsBooking(style1, style2, package),
16.dp.SpaceX,
_loyaltyProgram(style1, style2, package),
16.dp.SpaceX,
_searchCredits(style1, style2, package),
16.dp.SpaceX,
_cryptoCurrencies (style1, style2, package),
];
// case PlanType.sovereignPass:
// return [
// _flightsAndPassenger(style1, style2, package),
// 16.dp.SpaceX,
// _hotelsBooking(style1, style2, package),
// 16.dp.SpaceX,
// _loyaltyProgram(style1, style2, package),
// 16.dp.SpaceX,
// _searchCredits(style1, style2, package),
// 16.dp.SpaceX,
// _cryptoCurrencies (style1, style2, package),
// 16.dp.SpaceX,
// _richText([
// const TextSpan(text: 'Complimentary NEO One SMART:', style: style1),
// const TextSpan(text: ' Experience the perfect blend for '),
// TextSpan(
// text: '${valueText(package.neoOneMonthlySubscription, needNumberDescription: false)} months',
// style: style2),
// const TextSpan(
// text:
// ' of traditional banking and crypto management for a hassle-free financial journey.'),
// ]),
// 16.dp.SpaceX,
// Text(
// '*Price value: a 12 months NEOPASS PRESTIGE Pass \$4,996 and a ASMALLWORLD PRESTIGE Membership Tier \$5,790',
// style: TextStyle(
// fontWeight: FontWeight.w400,
// color: ColorHelper.neutralLightText,
// fontSize: 11.dp,
// ),
// ),
// ];
// case PlanType.sovereignPassPlus:
// return [
// _flightsAndPassenger(style1, style2, package),
// 16.dp.SpaceX,
// _hotelsBooking(style1, style2, package),
// 16.dp.SpaceX,
// _loyaltyProgram(style1, style2, package),
// 16.dp.SpaceX,
// _searchCredits(style1, style2, package),
// 16.dp.SpaceX,
// _cryptoCurrencies (style1, style2, package),
// 16.dp.SpaceX,
// _richText([
// const TextSpan(text: 'Complimentary NEO One SMART:', style: style1),
// const TextSpan(text: ' Experience the perfect blend for '),
// TextSpan(
// text: '${valueText(package.neoOneMonthlySubscription, needNumberDescription: false)} months',
// style: style2),
// const TextSpan(
// text:
// ' of traditional banking and crypto management for a hassle-free financial journey.'),
// ]),
// 16.dp.SpaceX,
// Text(
// '*Price value: a 12 months NEOPASS PRESTIGE Pass \$4,996 and a ASMALLWORLD SIGNATURE Membership Tier \$9,990',
// style: TextStyle(
// fontWeight: FontWeight.w400,
// color: ColorHelper.neutralLightText,
// fontSize: 11.dp,
// ),
// ),
// ];
// case PlanType.singlePass:
// return [
// _richText([
// const TextSpan(text: 'Flight Booking Privileges:', style: style1),
// const TextSpan(text: ' Book '),
// TextSpan(
// text:
// '${valueText(package.maxExclusiveBookings)} flights',
// style: style2),
// const TextSpan(
// text:
// ' in premium, business or first class within a 12-month period. '),
// TextSpan(
// text:
// 'Total ${valueText(package.adultPassengerLimit)} adult passengers.',
// style: style2),
// const TextSpan(text: ' Unlimited children under 18 years.'),
// ]),
// ];
default:
return [];
}
}