NavigationBar constructor
const
NavigationBar({
- Key? key,
- required List<
Widget> children, - NavigationBarAlignment alignment = NavigationBarAlignment.start,
- Axis? direction,
- NavigationLabelType labelType = NavigationLabelType.all,
- NavigationLabelPosition labelPosition = NavigationLabelPosition.bottom,
- NavigationLabelSize labelSize = NavigationLabelSize.small,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- double? surfaceOpacity,
- double? surfaceBlur,
- Key? selectedKey,
- ValueChanged<
Key?> ? onSelected, - bool expanded = false,
- bool? keepCrossAxisSize,
- bool? keepMainAxisSize,
- double? expandedSize,
- double? collapsedSize,
- 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,
});