NavigationMenuTheme constructor

const NavigationMenuTheme({
  1. double? surfaceOpacity,
  2. double? surfaceBlur,
  3. EdgeInsetsGeometry? margin,
  4. Offset? offset,
})

Creates a NavigationMenuTheme with the specified appearance properties.

All parameters are optional and will fall back to default values when not provided. This allows for partial customization while maintaining consistent defaults.

Parameters:

  • surfaceOpacity (double?, optional): Opacity level for popover background
  • surfaceBlur (double?, optional): Blur effect intensity for popover
  • margin (EdgeInsetsGeometry?, optional): Space around the popover
  • offset (Offset?, optional): Position offset relative to trigger

Example:

NavigationMenuTheme(
  surfaceOpacity: 0.9,
  surfaceBlur: 8.0,
  margin: EdgeInsets.all(16.0),
  offset: Offset(0, 8),
)

Implementation

const NavigationMenuTheme({
  this.surfaceOpacity,
  this.surfaceBlur,
  this.margin,
  this.offset,
});