NavBottomBar constructor

NavBottomBar({
  1. Key? key,
  2. List<BottomNavigationBarItem>? items,
  3. ValueChanged<int>? onTap,
  4. int? currentIndex = 0,
  5. double? elevation = 8.0,
  6. BottomNavigationBarType? type,
  7. Color? fixedColor,
  8. Color? backgroundColor,
  9. double? iconSize = 24.0,
  10. Color? selectedItemColor,
  11. Color? unselectedItemColor,
  12. IconThemeData? selectedIconTheme = const IconThemeData(),
  13. IconThemeData? unselectedIconTheme = const IconThemeData(),
  14. double? selectedFontSize = 14.0,
  15. double? unselectedFontSize = 12.0,
  16. TextStyle? selectedLabelStyle,
  17. TextStyle? unselectedLabelStyle,
  18. bool? showSelectedLabels = true,
  19. bool? showUnselectedLabels,
  20. bool? hide = false,
})

Optionally supply all the BottomNavigationBar properties when instantiating.

Implementation

NavBottomBar({
  this.key,
  this.items,
  this.onTap,
  this.currentIndex = 0,
  this.elevation = 8.0,
  this.type,
  this.fixedColor,
  this.backgroundColor,
  this.iconSize = 24.0,
  this.selectedItemColor,
  this.unselectedItemColor,
  this.selectedIconTheme = const IconThemeData(),
  this.unselectedIconTheme = const IconThemeData(),
  this.selectedFontSize = 14.0,
  this.unselectedFontSize = 12.0,
  this.selectedLabelStyle,
  this.unselectedLabelStyle,
  this.showSelectedLabels = true,
  this.showUnselectedLabels,
  this.hide = false,
});