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

SimpleHiddenDrawerController.of(context).setSelectedMenuPosition(SharedPref.getPreviousPosition(),openMenu: false); not working #52

Open
Umar-Khan-Yousafzai opened this issue Jul 6, 2021 · 0 comments

Comments

@Umar-Khan-Yousafzai
Copy link

Hi there, I am using your package in my application. The issue is that there's no implementation for the Routes. The problem is that our junior programmer who was tasked with this package sure that it's fine. but now it's not working.

1st issue the 2nd approach you've mentioned in your package takes screen as a widget. It's one screen per widget. How are we supposed to make it work with a bottom navigation bar? The package doesn't work with Routes.

I tried an approach of using Shared Preference and storing the current position of the Drawer's Current screen before moving to other. So I can use the value from Shared preference and set the selected position by using SimpleHiddenDrawerController.of(Context).setPosition.

image

Here you can see the snippet of how I am storing the value

image

Here you can see the way I am setting the selected position

The issue itself

When I set Position of the Drawer instead of moving to that screen the button opens up the Drawer menu itself!!!!

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

1 participant