computeDryLayout method

  1. @override
dynamic computeDryLayout(
  1. dynamic constraints
)

Implementation

@override
Size computeDryLayout(BoxConstraints constraints) {
  const BoxConstraints childConstraints = BoxConstraints();
  Size s = Size.zero;
  for (RenderBox box in children) {
    Size boxSize = box.computeDryLayout(childConstraints);
    s = Size(s.width + boxSize.width, s.height + boxSize.height);
  }
  return constraints.constrain(s);
}