-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Description
IntrinsicHeight fails to calculate its height in various cases (i.e. when Text is present #87571), but this issue is about Images.
UPD: the following example is broken, check this one instead: #117079 (comment)
Code snippet:
https://dartpad.dev/?id=41c3233072b062e4f754f253c4326da7
Code above produces a Row of a VerticalDivider and a Column that contains some 1-line Texts and an Image. You can tell by the visible height of the VerticalDivider the resulting height of the Row isn't right:

Now change the line 40 from this
width: 100,
to this
height: 100,
and it corrects itself:

Seems like Images report their original height to IntrinsicHeight without considering that it could've changed due to custom width parameter. Changing its height pareameter, however, does the trick.