Janam Maharjan
Janam Maharjan

Reputation: 106

how to get access to the path directory in FLUTTER WEB as final dir = await getApplicationDocumentsDirectory(); doesn't seem to work

how to get access to the path directory in FLUTTER WEB as final dir = await getApplicationDocumentsDirectory(); doesn't seem to work ... This is required to generate pdf invoice.

Upvotes: 0

Views: 2683

Answers (2)

Janam Maharjan
Janam Maharjan

Reputation: 106

i just uploaded the file to fireStore and then fetched it then again launched it using http package. or i found out we can launch the url also with launcher package.

Upvotes: 0

anDres
anDres

Reputation: 111

  • The web does not have internal file storage or acces a device, information can only be stored through cookies or a database such as Indexeddb.

  • You can create the invoice by creating the file with dart code and then send it or share it by some means

  • Another way would be to create it through a canvas.

Upvotes: 1

Related Questions