Houzi Docs logo Houzi Docs

If you want to add a custom drawer header, you need to open following file:

Project_HOME > lib > hooks_v2.dart

Look for the getDrawerHeaderHook() method. You are provided with:

DrawerHeaderHook getDrawerHeaderHook() {
  DrawerHeaderHook drawerHeaderHook = (
    BuildContext context,
    String appName,
    String appIconPath,
    String? userProfileName,
    String? userProfileImageUrl,
  ) {
    Widget? drawerHeaderWidget;
    // Customization logic for the drawer header goes here
    return drawerHeaderWidget;
  return drawerHeaderHook;

Make sure to replace the placeholder comments with your specific customization logic for the drawer header.

Added in version 1.3.0

Previous: Add Custom Widget in Property Details Next: Add Custom Widget in Drawer