NavigationBar constructor

const NavigationBar({
  1. Key? key,
  2. required List<Widget> children,
  3. NavigationBarAlignment alignment = NavigationBarAlignment.start,
  4. Axis? direction,
  5. NavigationLabelType labelType = NavigationLabelType.all,
  6. NavigationLabelPosition labelPosition = NavigationLabelPosition.bottom,
  7. NavigationLabelSize labelSize = NavigationLabelSize.small,
  8. Color? backgroundColor,
  9. EdgeInsetsGeometry? padding,
  10. double? surfaceOpacity,
  11. double? surfaceBlur,
  12. Key? selectedKey,
  13. ValueChanged<Key?>? onSelected,
  14. bool expanded = false,
  15. bool? keepCrossAxisSize,
  16. bool? keepMainAxisSize,
  17. double? expandedSize,
  18. double? collapsedSize,
  19. double? spacing,
})

Creates a NavigationBar with the specified configuration.

Implementation

const NavigationBar({
  super.key,
  required this.children,
  this.alignment = NavigationBarAlignment.start,
  this.direction,
  this.labelType = NavigationLabelType.all,
  this.labelPosition = NavigationLabelPosition.bottom,
  this.labelSize = NavigationLabelSize.small,
  this.backgroundColor,
  this.padding,
  this.surfaceOpacity,
  this.surfaceBlur,
  this.selectedKey,
  this.onSelected,
  this.expanded = false,
  this.keepCrossAxisSize,
  this.keepMainAxisSize,
  this.expandedSize,
  this.collapsedSize,
  this.spacing,
});