BottomNavBar constructor

const BottomNavBar({
  1. Key? key,
  2. required List<BottomNavItem> items,
  3. required int currentIndex,
  4. ValueChanged<int>? onTap,
  5. Color? color,
  6. Color? activeColor,
  7. Color? inactiveColor,
  8. double elevation = 8,
  9. bool showLabels = true,
  10. Widget? floatingAction,
  11. double iconSize = 22,
  12. double selectedIconSize = 24,
  13. Color? backgroundColor,
})

Implementation

const BottomNavBar({
  super.key,
  required this.items,
  required this.currentIndex,
  this.onTap,
  this.color,
  this.activeColor,
  this.inactiveColor,
  this.elevation = 8,
  this.showLabels = true,
  this.floatingAction,
  this.iconSize = 22,
  this.selectedIconSize = 24,
  this.backgroundColor,
});