UIProBottomNav.floating constructor

const UIProBottomNav.floating({
  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? iconSize,
  9. bool? showLabels = false,
  10. TextStyle? labelStyle,
  11. double? indicatorHeight,
  12. Color? indicatorColor,
  13. double indicatorWidth = 4,
  14. bool showIndicator = true,
  15. bool enableHapticFeedback = true,
})

Creates a floating bottom navigation bar.

Implementation

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