getIntrinsicHeight method
Computes the intrinsic height of this widget under the given width constraint.
Implementation
@override
int getIntrinsicHeight(int width) {
final h1 = child1.getIntrinsicHeight(width);
final h2 = child2.getIntrinsicHeight(width);
if (direction == LayoutDirection.vertical) {
return h1 + h2 + 1;
} else {
return max(h1, h2);
}
}