AuiBottomNav constructor

const AuiBottomNav({
  1. Key? key,
  2. required List<AuiBottomNavItem> items,
  3. required int currentIndex,
  4. required ValueChanged<int> onTap,
  5. Color? activeColor,
  6. Color? inactiveColor,
  7. Color? backgroundColor,
  8. double elevation = 8.0,
  9. bool showLabels = true,
  10. Color? indicatorColor,
})

Creates an AuiBottomNav.

Implementation

const AuiBottomNav({
  super.key,
  required this.items,
  required this.currentIndex,
  required this.onTap,
  this.activeColor,
  this.inactiveColor,
  this.backgroundColor,
  this.elevation = 8.0,
  this.showLabels = true,
  this.indicatorColor,
}) : assert(items.length >= 2 && items.length <= 5,
          'AuiBottomNav requires between 2 and 5 items.');