sidebarx
sidebarx copied to clipboard
Couldn't add proper logout functionality in sidebarx. Sidebar showing in login page after logout
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.
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();
}
)