dart_pdf icon indicating copy to clipboard operation
dart_pdf copied to clipboard

Know how many widgets in a single page.

Open led-joric opened this issue 1 year ago • 2 comments

I need this to figure out how many widgets are there in a single page, because I want to place the footer widget at the bottom of the page when there is no other widgets in that page other than the footer.

led-joric avatar Feb 06 '24 14:02 led-joric

Put your widgets into a list and end of the list put your footer widget with a size of a single page so it will jump to the next page.

bksbora avatar Feb 07 '24 15:02 bksbora

Put your widgets into a list and end of the list put your footer widget with a size of a single page so it will jump to the next page.

I think, I need to clarify my inquiry. I want to know how many widgets there are in a single page because I want the footer to be at the bottom when there is another widget other than the footer, but if in a page there is only a footer I want it to be aligned at top. I already achieved the first one, however, the second problem is the one that i am having problem that is why I needed to know how many widgets there are to know if the footer is the only widget and there and I will set the footer aligned top if so.

led-joric avatar Feb 07 '24 16:02 led-joric