NavigationMenu constructor

const NavigationMenu({
  1. Key? key,
  2. double? surfaceOpacity,
  3. double? surfaceBlur,
  4. required List<Widget> children,
})

Creates a NavigationMenu with the specified items and appearance.

The children parameter is required and should contain NavigationMenuItem widgets that define the menu structure. Appearance properties are optional and will use theme defaults.

Parameters:

  • surfaceOpacity (double?, optional): Popover background opacity
  • surfaceBlur (double?, optional): Popover backdrop blur intensity
  • children (List

Example:

NavigationMenu(
  surfaceOpacity: 0.9,
  children: [
    NavigationMenuItem(child: Text('Home'), onPressed: _goHome),
    NavigationMenuItem(child: Text('About'), onPressed: _showAbout),
  ],
)

Implementation

const NavigationMenu({
  super.key,
  this.surfaceOpacity,
  this.surfaceBlur,
  required this.children,
});