UIProBottomNav.floating constructor
const
UIProBottomNav.floating({
- Key? key,
- required List<
UIProBottomNavItem> items, - required int currentIndex,
- required ValueChanged<
int> onChanged, - Color? backgroundColor,
- Color? selectedColor,
- Color? unselectedColor,
- double? iconSize,
- bool? showLabels = false,
- TextStyle? labelStyle,
- double? indicatorHeight,
- Color? indicatorColor,
- double indicatorWidth = 4,
- bool showIndicator = true,
- 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;