getIntrinsicHeight method
Returns the intrinsic height of this element.
Implementation
@override
int getIntrinsicHeight(int width) {
final padding = (widget as Padding).padding;
final childWidth = width - padding.left - padding.right;
final w = childWidth < 0 ? 0 : childWidth;
final childHeight = childElement?.getIntrinsicHeight(w) ?? 0;
return childHeight + padding.top + padding.bottom;
}