ZetaGlobalHeader constructor

const ZetaGlobalHeader({
  1. Key? key,
  2. bool? rounded,
  3. required String platformName,
  4. List<Widget> navItems = const [],
  5. Widget? searchBar,
  6. List<Widget> actionItems = const [],
  7. String? userName,
  8. VoidCallback? onHamburgerMenuPressed,
  9. VoidCallback? onAvatarButtonPressed,
  10. VoidCallback? onAppsButtonPressed,
  11. Widget? avatar,
  12. Widget? leading,
  13. Widget? trailing,
  14. String? trailingSemanticLabel = 'App switcher button',
  15. String? leadingSemanticLabel = 'Hamburger menu button',
  16. String? logoSemanticLabel = 'Zebra logo',
  17. String? avatarSemanticLabel = 'User avatar button',
})

Constructs ZetaGlobalHeader

Implementation

const ZetaGlobalHeader({
  super.key,
  super.rounded,
  required this.platformName,
  this.logo,
  this.navItems = const [],
  this.searchBar,
  this.actionItems = const [],
  this.userName,
  this.onHamburgerMenuPressed,
  this.onAvatarButtonPressed,
  this.onAppsButtonPressed,
  this.avatar,
  this.leading,
  this.trailing,
  this.trailingSemanticLabel = 'App switcher button',
  this.leadingSemanticLabel = 'Hamburger menu button',
  this.logoSemanticLabel = 'Zebra logo',
  this.avatarSemanticLabel = 'User avatar button',
});