layout method
void
layout(
- Context context,
- BoxConstraints constraints, {
- bool parentUsesSize = false,
override
First widget pass to calculate the children layout and bounding box
Implementation
@override
void layout(Context context, BoxConstraints constraints,
{bool parentUsesSize = false}) {
final constraints = _getConstraints(context);
if (child != null) {
child!.layout(context, constraints, parentUsesSize: false);
assert(child!.box != null);
}
box = _getBox(context);
}