constraints property

BoxConstraints? constraints

Optional size constraints for the menu.

When unspecified, defaults to:

const BoxConstraints(
  minWidth: 2.0 * 56.0,
  maxWidth: 5.0 * 56.0,

The default constraints ensure that the menu width matches maximum width recommended by the Material Design guidelines. Specifying this parameter enables creation of menu wider than the default maximum width.


final BoxConstraints? constraints;