Open yakou32 opened 4 months ago
I found a solution with InteractiveViewer()
- that is to set its constrained
property to false
.
This way, the children are not constrained and the Stack layout is respected. And no need to have any Overflowbox messing around.
Is there anything similar for PhotoView?
I'm trying to render a zoomable/panable Stack - that is a large photo with positioned informations on top of it.
Here is an example:
Thing is Stack resizes the children to fit its container:
One solution I found was to make the Stack grow as much as needed. This way I ensure the underneath image is not shrinked, and the positionned elements remain correct:
Although content of the Stack is now correct, if I put this in PhotoView, the PhotoViewComputedScale is not correct:
Indeed, the Overflowbox dimension seems not to be taken into account. I tried to wrapped it in a SizedBox at image's dimension with no success.
Would you know how to solve this?
Thanks!