computeMinIntrinsicHeight method
Computes the minimum intrinsic height at the given width.
Performs a dry layout to determine the smallest height the layout can reasonably have while respecting the width constraint.
Implementation
double computeMinIntrinsicHeight(double width) {
LayoutSize dryLayout = performLayout(
LayoutConstraints(
minWidth: 0,
maxWidth: width,
minHeight: 0,
maxHeight: double.infinity,
),
true,
);
return dryLayout.height;
}