ApplicationHeader constructor
const
ApplicationHeader({
- Key? key,
- bool hasLauncherButton = true,
- IconData launcherIcon = Icons.apps_rounded,
- VoidCallback? onLauncherTap,
- bool hasLogo = true,
- ImageProvider<
Object> ? logo, - Widget? logoWidget,
- String? logoAssetPath,
- VoidCallback? onLogoTap,
- bool applicationTitle = true,
- String title = 'Application Title',
- Widget? titleWidget,
- VoidCallback? onTitleTap,
- bool hasPages = true,
- List<
String> pages = const ['Label', 'Label', 'Label', 'Label', 'Label'], - int selectedPageIndex = 0,
- ValueChanged<
int> ? onPageSelected, - List<
Widget> ? pageWidgets, - bool showApplicationHeaderButton1 = true,
- IconData action1Icon = Icons.face_outlined,
- Widget? action1Widget,
- VoidCallback? onAction1Tap,
- bool showApplicationHeaderButton2 = true,
- IconData action2Icon = Icons.face_outlined,
- Widget? action2Widget,
- VoidCallback? onAction2Tap,
- bool showApplicationHeaderButton3 = true,
- IconData action3Icon = Icons.face_outlined,
- Widget? action3Widget,
- VoidCallback? onAction3Tap,
- bool showApplicationHeaderButton4 = true,
- IconData action4Icon = Icons.face_outlined,
- Widget? action4Widget,
- VoidCallback? onAction4Tap,
- bool showAvatarButton = true,
- Widget? avatar,
- ImageProvider<
Object> ? avatarImage, - String? avatarImageUrl,
- String? avatarInitials,
- VoidCallback? onAvatarTap,
- Color? backgroundColor,
- 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,
});