--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/9cc67b65-e8b4-43e5-b088-fbe6bc30427b%40googlegroups.com.
They should be generated on the server side, not from flutter. IMnsHO.
fre. 14. feb. 2020 kl. 19:33 skrev Oleksii Shliama <o.sh...@gmail.com>:
Hey Adrian,--
The same situation here. Spent several hours searching and cannot find a thing. Have you found out the way to export files from flutter web app?
On Thursday, December 5, 2019 at 11:32:48 AM UTC+2, Adrian Rusin wrote:Hi Everyone!I'm developing an admin panel by using latest Flutter SDK. So it's not required to use css or html.I've used only Flutter languages.That's fine so far.But I have a problem to export some reports as xlsx or pdf. It should be downloaded to client's computer.Could you please help me to manage file create/edit/download?ThanksAdrian
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/9cc67b65-e8b4-43e5-b088-fbe6bc30427b%40googlegroups.com.
String csv = const ListToCsvConverter().convert(rows);
String encodedFileContents = Uri.encodeComponent(csv);
print(encodedFileContents);
new html.AnchorElement(href: "data:text, $encodedFileContents")
..setAttribute("download", "report.csv")
..click();