BottomNavbar constructor

BottomNavbar({
  1. Key? key,
  2. required List<NavBarItem> navItems,
  3. required dynamic itemClicked(
    1. int,
    2. String
    ),
  4. int animationDuration = 100,
  5. bool equalDuration = true,
  6. bool showIndicator = true,
  7. Color? indicatorColor,
  8. double? indicatorHeight,
  9. EdgeInsets padding = EdgeInsets.zero,
  10. TextStyle? textStyle,
  11. Color backgroundColor = Colors.white,
  12. Color activeColor = Colors.black,
  13. Color passiveColor = Colors.black54,
  14. Cubic curve = Curves.easeOut,
  15. IndicatorTypes indicatorType = IndicatorTypes.MAX,
  16. required double height,
})

Implementation

BottomNavbar({
  Key? key,
  required this.navItems,
  required this.itemClicked,
  this.animationDuration = 100,
  this.equalDuration = true,
  this.showIndicator = true,
  this.indicatorColor,
  this.indicatorHeight,
  this.padding = EdgeInsets.zero,
  this.textStyle,
  this.backgroundColor = Colors.white,
  this.activeColor = Colors.black,
  this.passiveColor = Colors.black54,
  this.curve = Curves.easeOut,
  this.indicatorType = IndicatorTypes.MAX,
  required this.height,
})  : assert(navItems.length != 0),
      assert(animationDuration > 0),
      super(key: key);