joseph-grabinger / flutter_to_pdf

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

Feat: Export unbuilted widget #76

Closed sousa-p closed 4 months ago

sousa-p commented 4 months ago

I carried out the implementation highlighted in the Issue: https://github.com/joseph-grabinger/flutter_to_pdf/issues/74.

In general, the implementation worked very well, but I'm having some problems with the casting of some widgets, such as the alignment one. Would this be a problem with the implementation or the package itself?

sousa-p commented 4 months ago

Note: The problem occurs when rendering a DataColumn

image

image

A possible solution would be for the .toPdfAlignment method to accept other types

joseph-grabinger commented 4 months ago

Hey :) Thanks for addressing this^^ I guess the same functionality is also included in #77, right?

If you agree, this PR could be closed an the functionality will be included when merging #77.

sousa-p commented 4 months ago

Hey :) Thanks for addressing this^^ I guess the same functionality is also included in #77, right?

If you agree, this PR could be closed an the functionality will be included when merging #77.

You are right! Thanks