ApplicationHeader constructor

const ApplicationHeader({
  1. Key? key,
  2. bool hasLauncherButton = true,
  3. IconData launcherIcon = Icons.apps_rounded,
  4. VoidCallback? onLauncherTap,
  5. Widget? logoWidget,
  6. String? logoAssetPath,
  7. VoidCallback? onLogoTap,
  8. bool applicationTitle = true,
  9. String title = 'Application Title',
  10. Widget? titleWidget,
  11. VoidCallback? onTitleTap,
  12. bool hasPages = true,
  13. List<String> pages = const ['Label', 'Label', 'Label', 'Label', 'Label'],
  14. int selectedPageIndex = 0,
  15. ValueChanged<int>? onPageSelected,
  16. List<Widget>? pageWidgets,
  17. bool showApplicationHeaderButton1 = true,
  18. IconData action1Icon = Icons.face_outlined,
  19. Widget? action1Widget,
  20. VoidCallback? onAction1Tap,
  21. bool showApplicationHeaderButton2 = true,
  22. IconData action2Icon = Icons.face_outlined,
  23. Widget? action2Widget,
  24. VoidCallback? onAction2Tap,
  25. bool showApplicationHeaderButton3 = true,
  26. IconData action3Icon = Icons.face_outlined,
  27. Widget? action3Widget,
  28. VoidCallback? onAction3Tap,
  29. bool showApplicationHeaderButton4 = true,
  30. IconData action4Icon = Icons.face_outlined,
  31. Widget? action4Widget,
  32. VoidCallback? onAction4Tap,
  33. bool showAvatarButton = true,
  34. Widget? avatar,
  35. ImageProvider<Object>? avatarImage,
  36. String? avatarImageUrl,
  37. String? avatarInitials,
  38. VoidCallback? onAvatarTap,
  39. Color? backgroundColor,
  40. Color? borderColor,
})

Creates an ApplicationHeader instance.

Implementation

const ApplicationHeader({
  super.key,
  this.hasLauncherButton = true,
  this.launcherIcon = Icons.apps_rounded,
  this.onLauncherTap,
  this.hasLogo = true,
  this.logo,
  this.logoWidget,
  this.logoAssetPath,
  this.onLogoTap,
  this.applicationTitle = true,
  this.title = 'Application Title',
  this.titleWidget,
  this.onTitleTap,
  this.hasPages = true,
  this.pages = const ['Label', 'Label', 'Label', 'Label', 'Label'],
  this.selectedPageIndex = 0,
  this.onPageSelected,
  this.pageWidgets,
  this.showApplicationHeaderButton1 = true,
  this.action1Icon = Icons.face_outlined,
  this.action1Widget,
  this.onAction1Tap,
  this.showApplicationHeaderButton2 = true,
  this.action2Icon = Icons.face_outlined,
  this.action2Widget,
  this.onAction2Tap,
  this.showApplicationHeaderButton3 = true,
  this.action3Icon = Icons.face_outlined,
  this.action3Widget,
  this.onAction3Tap,
  this.showApplicationHeaderButton4 = true,
  this.action4Icon = Icons.face_outlined,
  this.action4Widget,
  this.onAction4Tap,
  this.showAvatarButton = true,
  this.avatar,
  this.avatarImage,
  this.avatarImageUrl,
  this.avatarInitials,
  this.onAvatarTap,
  this.backgroundColor,
  this.borderColor,
});