buildContainer method

Widget buildContainer(
  1. BuildContext context,
  2. ThemeData theme
)

Implementation

Widget buildContainer(BuildContext context, ThemeData theme) {
  return Data.inherit(
    data: this,
    child: MenuGroup(
      regionGroupId: this,
      direction: Axis.vertical,
      itemPadding: EdgeInsets.zero,
      subMenuOffset:
          (widget.border ? const Offset(-4, 8) : const Offset(0, 4)) *
              theme.scaling,
      builder: (context, children) {
        return IntrinsicHeight(
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            mainAxisSize: MainAxisSize.min,
            children: children,
          ),
        ).medium();
      },
      children: widget.children,
    ),
  );
}