BottomNavbar constructor
BottomNavbar({
- Key? key,
- required dynamic itemClicked(),
- int animationDuration = 100,
- bool equalDuration = true,
- bool showIndicator = true,
- Color? indicatorColor,
- double? indicatorHeight,
- EdgeInsets padding = EdgeInsets.zero,
- TextStyle? textStyle,
- Color backgroundColor = Colors.white,
- Color activeColor = Colors.black,
- Color passiveColor = Colors.black54,
- Cubic curve = Curves.easeOut,
- IndicatorTypes indicatorType = IndicatorTypes.MAX,
- 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);