CustomAnimatedBottomBar constructor

const CustomAnimatedBottomBar({
  1. Key? key,
  2. int selectedIndex = 0,
  3. bool showElevation = true,
  4. double iconSize = 24,
  5. Color? backgroundColor,
  6. double itemCornerRadius = 28,
  7. double containerHeight = 48,
  8. Duration animationDuration = const Duration(milliseconds: 200),
  9. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
  10. required List<MyBottomNavigationBarItem> items,
  11. required ValueChanged<int> onItemSelected,
  12. Curve curve = Curves.easeInOut,
})

Implementation

const CustomAnimatedBottomBar({
  Key? key,
  this.selectedIndex = 0,
  this.showElevation = true,
  this.iconSize = 24,
  this.backgroundColor,
  this.itemCornerRadius = 28,
  this.containerHeight = 48,
  this.animationDuration = const Duration(milliseconds: 200),
  this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
  required this.items,
  required this.onItemSelected,
  this.curve = Curves.easeInOut,
}):assert(items.length >= 2 && items.length <= 5),
 super(key: key);