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

Couldn't add proper logout functionality in sidebarx. Sidebar showing in login page after logout #34

Open
androidAfi opened this issue Nov 7, 2022 · 1 comment

Comments

@androidAfi
Copy link

androidAfi commented Nov 7, 2022

Describe the bug
We have added a logout button in the sidebar switch.

We want to clear the navigation drawer and move to login page after clicking the logout button.
But we are facing the real issue here,Our sidebar is showing on the login page.
So how we can move from the sidebar to another page without sidebar?

We are developing a web app.

@Frezyx
Copy link
Owner

Frezyx commented Dec 12, 2022

Hello @androidAfi !
This is not issue for the SidebarX package

In your case you must implement any builder that notify your UI about Authorization state.

drawer: Builder(
    (context, authorized) {
        if(authorized) return SidebarX();
        return const SizedBox();
    }
)

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