UIBottomNavigationBar constructor

const UIBottomNavigationBar({
  1. Key? key,
  2. String? indexID,
  3. required List<UIBottomNavigationBarItem> items,
  4. Widget? top,
  5. int initialIndex = 0,
  6. bool disableOnTapWhenInitialIndex = true,
  7. double elevation = 8.0,
  8. Widget? bottom,
  9. BottomNavigationBarType type = BottomNavigationBarType.fixed,
  10. Color? fixedColor,
  11. Color? backgroundColor,
  12. double iconSize = 24.0,
  13. Color? selectedItemColor,
  14. Color? unselectedItemColor,
  15. IconThemeData selectedIconTheme = const IconThemeData(),
  16. IconThemeData unselectedIconTheme = const IconThemeData(),
  17. double selectedFontSize = 14.0,
  18. double unselectedFontSize = 12.0,
  19. TextStyle? selectedLabelStyle,
  20. TextStyle? unselectedLabelStyle,
  21. bool showSelectedLabels = true,
  22. bool? showUnselectedLabels,
  23. NavigatorController? controller,
})

Wrapper for BottomNavigationBar.

Implementation

const UIBottomNavigationBar({
  Key? key,
  this.indexID,
  required this.items,
  this.top,
  this.initialIndex = 0,
  this.disableOnTapWhenInitialIndex = true,
  this.elevation = 8.0,
  this.bottom,
  this.type = BottomNavigationBarType.fixed,
  this.fixedColor,
  // this.routeObserver,
  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.controller,
}) : super(key: key);