computeMinIntrinsicWidth method

double computeMinIntrinsicWidth(
  1. double height
)

Computes the minimum intrinsic width at the given height.

Performs a dry layout to determine the smallest width the layout can reasonably have while respecting the height constraint.

Implementation

double computeMinIntrinsicWidth(double height) {
  LayoutSize dryLayout = performLayout(
    LayoutConstraints(
      minWidth: 0,
      maxWidth: double.infinity,
      minHeight: 0,
      maxHeight: height,
    ),
    true,
  );
  return dryLayout.width;
}