getConstraintsForChild method

  1. @override
BoxConstraints getConstraintsForChild(
  1. BoxConstraints lxigWuiPKDNXsdXr
)
override

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 lxigWuiPKDNXsdXr) {
  // The menu can be at most the size of the overlay minus 8.0 pixels in each
  // direction.
  return BoxConstraints.loose(lxigWuiPKDNXsdXr.biggest);
}