NavigationMenuContentList constructor

const NavigationMenuContentList({
  1. Key? key,
  2. required List<Widget> children,
  3. int crossAxisCount = 3,
  4. double? spacing,
  5. double? runSpacing,
  6. bool reverse = false,
})

Creates a NavigationMenuContentList with the specified layout properties.

The children parameter is required and should contain the items to be arranged in the grid. The layout properties control the grid's appearance and spacing.

Parameters:

  • children (List<Widget>, required): Items to arrange in grid
  • crossAxisCount (int, default: 3): Number of columns per row
  • spacing (double?, optional): Horizontal spacing between items
  • runSpacing (double?, optional): Vertical spacing between rows
  • reverse (bool, default: false): Whether to reverse column order

Example:

NavigationMenuContentList(
  crossAxisCount: 2,
  spacing: 20.0,
  children: menuItems,
)

Implementation

const NavigationMenuContentList({
  super.key,
  required this.children,
  this.crossAxisCount = 3,
  this.spacing,
  this.runSpacing,
  this.reverse = false,
});