NavigationBar constructor

const NavigationBar({
  1. Key? key,
  2. Color? backgroundColor,
  3. NavigationBarAlignment alignment = NavigationBarAlignment.center,
  4. Axis direction = Axis.horizontal,
  5. double? spacing,
  6. NavigationLabelType labelType = NavigationLabelType.none,
  7. EdgeInsetsGeometry? padding,
  8. BoxConstraints? constraints,
  9. bool expands = true,
  10. int? index,
  11. ValueChanged<int>? onSelected,
  12. double? surfaceOpacity,
  13. double? surfaceBlur,
  14. required List<NavigationBarItem> children,
})

Implementation

const NavigationBar({
  super.key,
  this.backgroundColor,
  this.alignment = NavigationBarAlignment.center,
  this.direction = Axis.horizontal,
  this.spacing,
  this.labelType = NavigationLabelType.none,
  this.padding,
  this.constraints,
  this.expands = true,
  this.index,
  this.onSelected,
  this.surfaceOpacity,
  this.surfaceBlur,
  required this.children,
});