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

SideMenu doesn't consistently display on navigation #30

Closed
kylegraycar opened this issue Oct 24, 2022 · 10 comments
Closed

SideMenu doesn't consistently display on navigation #30

kylegraycar opened this issue Oct 24, 2022 · 10 comments

Comments

@kylegraycar
Copy link

When I use

onPressed: () async {
                          Navigator.pushNamedAndRemoveUntil(
                              context, '/', (route) => false);
                        },

The SideMenu sometimes won't display. No errors are shown in the console. I can't determine what the criteria is for why or why not the SideMenu will show. When the SideMenu doesn't display, refreshing the page will then display it.

This could be related to #29

@kylegraycar
Copy link
Author

I'm using easy_sidemenu: ^0.4.1

@Jamalianpour
Copy link
Owner

In previous versions did you have this issue too?
Try pushNamed only and don't remove

@kylegraycar
Copy link
Author

kylegraycar commented Oct 24, 2022 via email

Jamalianpour added a commit that referenced this issue Oct 26, 2022
@kylegraycar
Copy link
Author

Hey @Jamalianpour - do you plan to release your Fix Navigator issue commit to pub.dev soon? Thank you!

@Jamalianpour
Copy link
Owner

Jamalianpour commented Nov 1, 2022

Did you test the last commit of master branch?
I don't know the issue is fixed or not

@kylegraycar
Copy link
Author

I just tried testing the master branch -- no luck unfortunately :(

theodornk added a commit to theodornk/easy_sidemenu that referenced this issue Nov 21, 2022
@aditya113141
Copy link
Contributor

Has this issue been solved ?

@Jamalianpour
Copy link
Owner

Yes, it's fixed in version 0.5.0

@aditya113141
Copy link
Contributor

aditya113141 commented Oct 3, 2023

Error come up when we navigate from one Sidemenu to another Sidemenu.

SideMenuItem( title: 'Settings', onTap: (page, _) { GoRouter.of(context).pushNamed( 'settings' ); },

In this, the new page, to which the application has routed, also contains a SideMenu. And in the new page, its sideMenu is not visible. What to do ?

@aditya113141
Copy link
Contributor

Error come up when we navigate from one Sidemenu to another Sidemenu.

SideMenuItem( title: 'Settings', onTap: (page, _) { GoRouter.of(context).pushNamed( 'settings' ); },

In this, the new page, to which the application has routed, also contains a SideMenu. And in the new page, its sideMenu is not visible. What to do ?

I was working in open mode. Previous PR solved for only auto mode. I left a PR for fix in open and compact mode. PR

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

3 participants