performBoxLayout method
Perform layout with typed box constraints
Subclasses override this instead of performLayout. The default implementation sizes to the maxima, treating an unbounded axis as the corresponding lower bound.
Implementation
@override
void performBoxLayout(BoxConstraints constraints) {
final child = _child;
if (child == null) {
size = Size(constraints.minWidth, constraints.minHeight);
return;
}
final childConstraints = getConstraintsForChild(child, constraints);
child.layout(childConstraints);
size = Size(child.size.width, child.size.height);
child.x = 0;
child.y = 0;
}