NavigationView.switcher constructor
const
NavigationView.switcher({
- Key? key,
- required List<
NavigationItem> items, - Duration? animationDuration,
- Axis direction = Axis.horizontal,
- bool reversed = false,
- NavigationHorizontalConfig? horizontal,
- NavigationVerticalConfig? vertical,
- Color? indicatorColor,
- ShapeBorder? indicatorShape,
- Color? backgroundColor,
- double? elevation,
- NavigationLabelType? labelType,
- NavBuilder? builder,
- Curve? switchInCurve,
- Curve? switchOutCurve,
- AnimatedSwitcherTransitionBuilder? transitionBuilder,
- AnimatedSwitcherLayoutBuilder? layoutBuilder,
- bool showBar = true,
- ValueChanged<
int> ? onPageChanged,
Implementation
const NavigationView.switcher({
super.key,
this.navKey,
required this.items,
this.animationDuration,
this.direction = Axis.horizontal,
this.reversed = false,
this.horizontal,
this.vertical,
this.indicatorColor,
this.indicatorShape,
this.backgroundColor,
this.elevation,
this.labelType,
this.builder,
this.switchInCurve,
this.switchOutCurve,
this.transitionBuilder,
this.layoutBuilder,
this.showBar = true,
this.onPageChanged,
}) : usePageView = false,
pageViewCurve = null;