BottomNavyBar constructor
BottomNavyBar({
- Key? key,
- int selectedIndex = 0,
- bool showElevation = true,
- double iconSize = 24,
- Color? backgroundColor,
- double itemCornerRadius = 50,
- double containerHeight = 56,
- Duration animationDuration = const Duration(milliseconds: 270),
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
- required List<
BottomNavyBarItem> items, - required ValueChanged<
int> onItemSelected, - Curve curve = Curves.linear,
Implementation
BottomNavyBar({
Key? key,
this.selectedIndex = 0,
this.showElevation = true,
this.iconSize = 24,
this.backgroundColor,
this.itemCornerRadius = 50,
this.containerHeight = 56,
this.animationDuration = const Duration(milliseconds: 270),
this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
required this.items,
required this.onItemSelected,
this.curve = Curves.linear,
}) : assert(items.length >= 2 && items.length <= 5),
super(key: key);