NavigationRail constructor
const
NavigationRail({
- Key? key,
- Color? backgroundColor,
- NavigationRailAlignment alignment = NavigationRailAlignment.center,
- Axis direction = Axis.vertical,
- double? spacing,
- NavigationLabelType labelType = NavigationLabelType.selected,
- EdgeInsetsGeometry? padding,
- BoxConstraints? constraints,
- int? index,
- ValueChanged<
int> ? onSelected, - double? surfaceOpacity,
- double? surfaceBlur,
- required List<
NavigationBarItem> children,
Implementation
const NavigationRail({
super.key,
this.backgroundColor,
this.alignment = NavigationRailAlignment.center,
this.direction = Axis.vertical,
this.spacing,
this.labelType = NavigationLabelType.selected,
this.padding,
this.constraints,
this.index,
this.onSelected,
this.surfaceOpacity,
this.surfaceBlur,
required this.children,
});