-
-
Notifications
You must be signed in to change notification settings - Fork 702
Description
Is your feature request related to a problem? Please describe.
I want to build a list of card containing text the card height depends on the amount of text. I want to show as many card as possible on a page and then print the rest on the nest page.
In Flutter I would probably use a CustomMultiChildLayout.
But basically what I need is a way to calculate the size of a child widget before choosing where to place it.
I know that is not efficient in Flutter realtime rendering engine but in pdf generate that is not an issue.
Describe the solution you'd like
CustomMultiChildLayout or maybe simpler I don't know, or just a way to calculate a child size based on constraints.
Describe alternatives you've considered
Estimate the number of character and thus the approximate size but it is very unstable.
EDIT:
I just discover MultiPage is is nice but is does not solve the entire problem, I cannot control how widgets will behave. For example if I want them to be Expanded in a Column.