computeDryLayout method
- 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);
}