While I would have expected it to produce the output below (which can be achieved by changing the column size of the parent grid to FlexibleTrackSize(1) as can be seen in the comment of the provided sample code):
Side note: It seems very strange to me that changing the columnSizes of the parent grid does have an effect on the rowSizes of the child grid.
I think I've tracked this down to _itemMaxIntrinsicSizeOnAxis incorrectly being supplied with 0 as crossAxisSize by maxIntrinsicSize of IntrinsicContentTrackSize, which itself uses crossAxisSizeForItem to compute the size, but I am not sure how to proceed from there, in order to come up with a fix.
First of all thanks for this great and flexible Grid widget.
Unfortunately I've discovered a bug when nesting two Grids inside each other. I've condensed the problem into the sample below:
This sample unfortunately produces this output:
While I would have expected it to produce the output below (which can be achieved by changing the column size of the parent grid to
FlexibleTrackSize(1)
as can be seen in the comment of the provided sample code): Side note: It seems very strange to me that changing thecolumnSizes
of the parent grid does have an effect on therowSizes
of the child grid.I think I've tracked this down to
_itemMaxIntrinsicSizeOnAxis
incorrectly being supplied with0
ascrossAxisSize
bymaxIntrinsicSize
ofIntrinsicContentTrackSize
, which itself usescrossAxisSizeForItem
to compute the size, but I am not sure how to proceed from there, in order to come up with a fix.