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