UIProBottomNav constructor

const UIProBottomNav({
  1. Key? key,
  2. required List<UIProBottomNavItem> items,
  3. required int currentIndex,
  4. required ValueChanged<int> onChanged,
  5. Color? backgroundColor,
  6. Color? selectedColor,
  7. Color? unselectedColor,
  8. double? elevation,
  9. double? iconSize,
  10. bool? showLabels,
  11. TextStyle? labelStyle,
  12. UIProBottomNavType type = UIProBottomNavType.standard,
  13. double? indicatorHeight,
  14. Color? indicatorColor,
  15. double indicatorWidth = 4,
  16. bool enableHapticFeedback = true,
})

Creates a theme-aware bottom navigation bar.

Implementation

const UIProBottomNav({
  super.key,
  required this.items,
  required this.currentIndex,
  required this.onChanged,
  this.backgroundColor,
  this.selectedColor,
  this.unselectedColor,
  this.elevation,
  this.iconSize,
  this.showLabels,
  this.labelStyle,
  this.type = UIProBottomNavType.standard,
  this.indicatorHeight,
  this.indicatorColor,
  this.indicatorWidth = 4,
  this.enableHapticFeedback = true,
});