menuButtonThemeData static method

MenuButtonThemeData menuButtonThemeData({
  1. required Palette colors,
  2. required double scale,
  3. OutlinedBorder? shape,
})

Implementation

static MenuButtonThemeData menuButtonThemeData({
  required Palette colors,
  required double scale,
  OutlinedBorder? shape,
}) {
  shape ??= const MonetShapeTheme().resolve(scale).border();
  return MenuButtonThemeData(
    style: textButtonStyle(colors, scale: scale).copyWith(
      padding: WidgetStateProperty.all(const EdgeInsets.all(4)),
      shape: WidgetStatePropertyAll(shape),
    ),
  );
}