NavigationHubLayout.topNav constructor

NavigationHubLayout.topNav({
  1. bool? isScrollable = false,
  2. EdgeInsetsGeometry? padding,
  3. Color? indicatorColor,
  4. bool? automaticIndicatorColorAdjustment = true,
  5. double? indicatorWeight = 2.0,
  6. EdgeInsetsGeometry? indicatorPadding = EdgeInsets.zero,
  7. Decoration? indicator,
  8. TabBarIndicatorSize? indicatorSize,
  9. Color? dividerColor = const Color(0xEEEEEEFF),
  10. double? dividerHeight,
  11. Color? backgroundColor,
  12. Gradient? backgroundGradient,
  13. Color? labelColor,
  14. TextStyle? labelStyle,
  15. EdgeInsetsGeometry? labelPadding,
  16. Color? unselectedLabelColor,
  17. TextStyle? unselectedLabelStyle,
  18. bool? showSelectedLabels,
  19. DragStartBehavior? dragStartBehavior = DragStartBehavior.start,
  20. Color? overlayColor,
  21. MouseCursor? mouseCursor,
  22. bool? enableFeedback,
  23. ScrollPhysics? physics,
  24. InteractiveInkFeatureFactory? splashFactory,
  25. BorderRadius? splashBorderRadius,
  26. TabAlignment? tabAlignment,
  27. TextScaler? textScaler,
  28. Duration? animationDuration,
  29. WidgetStateProperty<Color?>? overlayColorState,
})

Create a top navigation layout

Implementation

NavigationHubLayout.topNav({
  this.isScrollable = false,
  this.padding,
  this.indicatorColor,
  this.automaticIndicatorColorAdjustment = true,
  this.indicatorWeight = 2.0,
  this.indicatorPadding = EdgeInsets.zero,
  this.indicator,
  this.indicatorSize,
  this.dividerColor = const Color(0xEEEEEEFF),
  this.dividerHeight,
  this.backgroundColor,
  this.backgroundGradient,
  this.labelColor,
  this.labelStyle,
  this.labelPadding,
  this.unselectedLabelColor,
  this.unselectedLabelStyle,
  this.showSelectedLabels,
  this.dragStartBehavior = DragStartBehavior.start,
  this.overlayColor,
  this.mouseCursor,
  this.enableFeedback,
  this.physics,
  this.splashFactory,
  this.splashBorderRadius,
  this.tabAlignment,
  this.textScaler,
  this.animationDuration,
  this.overlayColorState,
}) {
  kind = "topNav";
}