shareFlightCardInvitationPng static method
Implementation
static shareFlightCardInvitationPng({
required BuildContext context,
required OfferModel? offer,
Estimate? estimate,
}) {
final authController = Get.find<AuthenticationController>();
generatePng(
context: context,
widget: SizedBox(
width: 300,
child: FlightsInvitationCardBody(
offer: offer,
estimate: estimate,
isGenerating: true,
),
),
refCode: authController.referralCode ?? '',
customSize: Size(
450,
((offer?.isRoundTrip ?? false) ? 820 : 775),
),
);
}