GNav constructor

const GNav(
  1. {Key? key,
  2. required List<GButton> tabs,
  3. int selectedIndex = 0,
  4. ValueChanged<int>? onTabChange,
  5. double gap = 0,
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(25),
  7. Color? activeColor,
  8. Color? color,
  9. Color rippleColor = Colors.transparent,
  10. Color hoverColor = Colors.transparent,
  11. Color backgroundColor = Colors.transparent,
  12. Color tabBackgroundColor = Colors.transparent,
  13. double tabBorderRadius = 100.0,
  14. double? iconSize,
  15. TextStyle? textStyle,
  16. Curve curve = Curves.easeInCubic,
  17. EdgeInsetsGeometry tabMargin = EdgeInsets.zero,
  18. bool debug = false,
  19. Duration duration = const Duration(milliseconds: 500),
  20. Border? tabBorder,
  21. Border? tabActiveBorder,
  22. List<BoxShadow>? tabShadow,
  23. bool haptic = true,
  24. Gradient? tabBackgroundGradient,
  25. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
  26. GnavStyle? style = GnavStyle.google,
  27. double? textSize}
)

Implementation

const GNav({
  Key? key,
  required this.tabs,
  this.selectedIndex = 0,
  this.onTabChange,
  this.gap = 0,
  this.padding = const EdgeInsets.all(25),
  this.activeColor,
  this.color,
  this.rippleColor = Colors.transparent,
  this.hoverColor = Colors.transparent,
  this.backgroundColor = Colors.transparent,
  this.tabBackgroundColor = Colors.transparent,
  this.tabBorderRadius = 100.0,
  this.iconSize,
  this.textStyle,
  this.curve = Curves.easeInCubic,
  this.tabMargin = EdgeInsets.zero,
  this.debug = false,
  this.duration = const Duration(milliseconds: 500),
  this.tabBorder,
  this.tabActiveBorder,
  this.tabShadow,
  this.haptic = true,
  this.tabBackgroundGradient,
  this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
  this.style = GnavStyle.google,
  this.textSize,
}) : super(key: key);