Thursday, October 12, 2023
HomeiOS Developmentios - Flutter share PDF with title

ios – Flutter share PDF with title


I’m utilizing the share_plus – bundle for sharing a PDF. It’s working, however I wish to move the unique title of the PDF-file. At the moment my PDFs at all times get a random title (e.g. “9caef563-bdbe-4cb2-85d2-e582870bbdd3.pdf”), although I’m passing the title:

last response = await Dio().get(
    occasion.url,
    choices: Choices(
      headers: headers,
      responseType: ResponseType.bytes,
    ),
  );
  last consequence = await Share.shareXFiles(
    [
      XFile.fromData(
        response.data,
        mimeType: 'application/pdf',
        name: event.filename,
      ),
    ],
  );

What am I lacking right here? Why is it not passing the proper title?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments