-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to close the Drawer without Navigator.pop #44
Comments
See the solution here |
Thanks so much for the quick reply... You have build an awesome user friendly package here. |
Oh I think I did find a solution ! Can you try this: context.findRootAncestorStateOfType<DrawerControllerState>()?.close() Disclaimer: If this works I think you should use this. I have a lot of work right now so if that's ok for you I would rather not spend time fixing this right now. |
You a legend,works perfectly. |
Im building a web app that uses both drawer and endDrawer in the same page.
Therefore i cant use the function
Scaffold.of(ctx).openEndDrawer()
orscaffoldKey.currentState.openEndDrawer()
to close the Drawer or vice versa.Im trying to use
Navigator.pop(ctx)
to close the drawer, but its not closing the Drawer as it should.The text was updated successfully, but these errors were encountered: