sidebarx icon indicating copy to clipboard operation
sidebarx copied to clipboard

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

Open androidAfi opened this issue 3 years ago • 1 comments

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.

androidAfi avatar Nov 07 '22 12:11 androidAfi

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();
    }
)

Frezyx avatar Dec 12 '22 05:12 Frezyx