TAdminHeader constructor
const
TAdminHeader({
- Key? key,
- required GlobalKey<
ScaffoldState> scaffoldKey, - Widget? title,
- IconData? leadingIcon,
- VoidCallback? leadingOnPressed,
- List<
Widget> actions = const [], - String? profileImage,
- ImageType? imageType,
- String? profileName,
- String? profileEmail,
- void profileOnTap()?,
- bool showSearch = true,
- bool showMenu = true,
- bool loading = false,
- String searchHint = 'Search anything...',
- bool showOrderIcon = true,
- bool showNotificationIcon = true,
- bool showSettingsIcon = true,
- VoidCallback? onOrderPressed,
- VoidCallback? onNotificationPressed,
- VoidCallback? onSettingsPressed,
- Color? leadingIconColor,
Implementation
const TAdminHeader({
super.key,
required this.scaffoldKey,
this.title,
this.leadingIcon,
this.leadingOnPressed,
this.actions = const [],
this.profileImage,
this.imageType,
this.profileName,
this.profileEmail,
this.profileOnTap,
this.showSearch = true,
this.showMenu = true,
this.loading = false,
this.searchHint = 'Search anything...',
this.showOrderIcon = true,
this.showNotificationIcon = true,
this.showSettingsIcon = true,
this.onOrderPressed,
this.onNotificationPressed,
this.onSettingsPressed,
this.leadingIconColor,
});