joseph-grabinger / flutter_to_pdf

Create PDFs but work with normal Flutter Widgets.
MIT License
21 stars 17 forks source link

Support "unsupported" widgets #68

Closed Vera-Spoettl closed 5 months ago

Vera-Spoettl commented 6 months ago

As written in https://github.com/joseph-grabinger/flutter_to_pdf/issues/62

Unfortunately, I couldn't run your tests on my computer (pdf file is missing). Would be great, if you could run your tests and add test case for this.

joseph-grabinger commented 6 months ago

Thanks a lot! I'll take a look at your changes now :)

To run the tests you might have to first create the output directory in ./test (run mkdir test/output from the root of the project) .

joseph-grabinger commented 6 months ago

I added an example using flutter_charts to /example. For some reason the chart does not appear in the exported pdf. Could you please recheck on your side?

joseph-grabinger commented 6 months ago

I added an example using flutter_charts to /example. For some reason the chart does not appear in the exported pdf. Could you please recheck on your side?

Adjusted the example! There were two problems:

  1. The size of the "captured" image needs to be provided to Image.memory
  2. The example used earlier (https://github.com/joseph-grabinger/flutter_to_pdf/pull/68/commits/1e46e687af4452fd63a271de8187e26c7b45a464) overflowed to PDF-Page