shubhamhackz / autoscale_tabbarview

MIT License
19 stars 12 forks source link

multi autoscale_tabbarview not working #5

Open edwinmrb opened 2 years ago

edwinmrb commented 2 years ago

When working multi autoscale_tabbarview does not calculate the height of the parent, I am attaching a screenshot of what the bug currently looks like, and what it should look like.

BUG

JiangHongTiao commented 1 year ago

I have the same problem and it seems that it's not detecting the size of inner widgets correctly. The widget uses SizeDetectorWidget which is calculating the size of displayed widget. However, as flutter renders as a tree, the outer widget detects it's size earlier than inner widget. So the size of inner widget is not fully computed in time outer widget computes it, so it does not compute outer's size correctly. My knowledge of flutter widgets is not super deep, so I actually don't know how to solve it. The outer widget would need to update it's size after inner widget computes it's size. Unfortunately I'm not able to make PR for this, does anyone know how it could be fixed? It would help me as well.

39251474 commented 1 year ago

framework SizeChangedLayoutNotifier

7 #8