maxIntrinsicWidth method

  1. @override
double maxIntrinsicWidth(
  1. Iterable<RenderBox> cells,
  2. double containerWidth
)
override

Calculates the maximum intrinsic width similarly, for flexible layouts.

Allows columns to expand based on content while respecting padding.

Implementation

@override
double maxIntrinsicWidth(Iterable<RenderBox> cells, double containerWidth) {
  double result = 0.0;
  for (final RenderBox cell in cells) {
    result = max(result, cell.getMaxIntrinsicWidth(double.infinity));
  }
  return result + _padding;
}