NavigationMenuTheme constructor
const
NavigationMenuTheme({
- double? surfaceOpacity,
- double? surfaceBlur,
- EdgeInsetsGeometry? margin,
- 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 backgroundsurfaceBlur
(double?, optional): Blur effect intensity for popovermargin
(EdgeInsetsGeometry?, optional): Space around the popoveroffset
(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,
});