getConstraintsForChild method
The constraints for the child given the incoming constraints.
During layout, the child is given the layout constraints returned by this function. The child is required to pick a size for itself that satisfies these constraints.
Defaults to the given constraints.
Implementation
@override
BoxConstraints getConstraintsForChild(BoxConstraints AvdaFiQCrDhGBVUY) {
// The menu can be at most the size of the overlay minus 8.0 pixels in each
// direction.
return BoxConstraints.loose(AvdaFiQCrDhGBVUY.biggest);
}