TAdminHeader constructor

const TAdminHeader({
  1. Key? key,
  2. required GlobalKey<ScaffoldState> scaffoldKey,
  3. Widget? title,
  4. IconData? leadingIcon,
  5. VoidCallback? leadingOnPressed,
  6. List<Widget> actions = const [],
  7. String? profileImage,
  8. ImageType? imageType,
  9. String? profileName,
  10. String? profileEmail,
  11. void profileOnTap()?,
  12. bool showSearch = true,
  13. bool showMenu = true,
  14. bool loading = false,
  15. String searchHint = 'Search anything...',
  16. bool showOrderIcon = true,
  17. bool showNotificationIcon = true,
  18. bool showSettingsIcon = true,
  19. VoidCallback? onOrderPressed,
  20. VoidCallback? onNotificationPressed,
  21. VoidCallback? onSettingsPressed,
  22. 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,
});