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