getIntrinsicWidth method
Computes the intrinsic width of this widget under the given height constraint.
Implementation
@override
int getIntrinsicWidth(int height) {
final childHeight = height - padding.top - padding.bottom;
final h = childHeight < 0 ? 0 : childHeight;
return child.getIntrinsicWidth(h) + padding.left + padding.right;
}