BottomNavyBar constructor

BottomNavyBar({
  1. Key? key,
  2. int selectedIndex = 0,
  3. bool showElevation = true,
  4. double iconSize = 24,
  5. Color? backgroundColor,
  6. double itemCornerRadius = 50,
  7. double containerHeight = 56,
  8. Duration animationDuration = const Duration(milliseconds: 270),
  9. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
  10. required List<BottomNavyBarItem> items,
  11. required ValueChanged<int> onItemSelected,
  12. 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);