shareFlightCardInvitationPng static method

dynamic shareFlightCardInvitationPng({
  1. required BuildContext context,
  2. required OfferModel? offer,
  3. Estimate? estimate,
})

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),
    ),
  );
}