minIntrinsicWidth method

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

Calculates the minimum intrinsic width by taking the max of cell mins plus padding.

Ensures columns are wide enough for content without truncation.

Implementation

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