Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sir can you please guide me on this small issue. #36

Closed
fisforfaheem opened this issue Dec 6, 2022 · 1 comment
Closed

Sir can you please guide me on this small issue. #36

fisforfaheem opened this issue Dec 6, 2022 · 1 comment

Comments

@fisforfaheem
Copy link

I currently am using this UI:

Screenshot 2022-12-06 at 2 08 46 PM

and want to use your package UI, but I don't understand how should I make this 4ezone drawer header look. can you please share some tips? I don't show the user profile pic at all.

@Frezyx
Copy link
Owner

Frezyx commented Dec 12, 2022

Hello @fisforfaheem !
All you need for remove header from your SidebarX widget is remove headerBuilder field.

     /// In example header builder returns avatar image
     
      headerBuilder: (context, extended) {
        return SizedBox(
          height: 100,
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Image.asset('assets/images/avatar.png'),
          ),
        );
      },

If you change it for this

      headerBuilder: (context, extended) {
        return const SizedBox();
      },

Or remove headerBuilder from SidebarX constructor - header will be removed

@Frezyx Frezyx closed this as completed Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants