BottomNavBar constructor
const
BottomNavBar({
- Key? key,
- required List<
BottomNavItem> items, - required int currentIndex,
- ValueChanged<
int> ? onTap, - Color? color,
- Color? activeColor,
- Color? inactiveColor,
- double elevation = 8,
- bool showLabels = true,
- Widget? floatingAction,
- double iconSize = 22,
- double selectedIconSize = 24,
- 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,
});