UITopNavigationBar constructor

const UITopNavigationBar({
  1. Key? key,
  2. String? indexID,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(8),
  4. double height = 40,
  5. required List<UITopNavigationBarItem> items,
  6. NavigatorController? controller,
  7. int initialIndex = 0,
  8. bool disableOnTapWhenInitialIndex = true,
  9. Color? fixedColor,
  10. Color? backgroundColor,
  11. Color? selectedItemColor,
  12. Color? unselectedItemColor,
  13. Color? selectedItemTextColor,
  14. Color? unselectedItemTextColor,
  15. bool showSelectedLabels = true,
  16. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 4),
})

Wrapper for BottomNavigationBar.

Implementation

const UITopNavigationBar({
  Key? key,
  this.indexID,
  this.padding = const EdgeInsets.all(8),
  this.height = 40,
  required this.items,
  this.controller,
  this.initialIndex = 0,
  this.disableOnTapWhenInitialIndex = true,
  this.fixedColor,
  // this.routeObserver,
  this.backgroundColor,
  this.selectedItemColor,
  this.unselectedItemColor,
  this.selectedItemTextColor,
  this.unselectedItemTextColor,
  this.showSelectedLabels = true,
  this.contentPadding = const EdgeInsets.symmetric(horizontal: 4),
}) : super(key: key);