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

Programmatically close #11

Open
NedoPrograMax opened this issue Apr 17, 2024 · 1 comment
Open

Programmatically close #11

NedoPrograMax opened this issue Apr 17, 2024 · 1 comment

Comments

@NedoPrograMax
Copy link

How to close dropdown programmatically?
For example, when I press on an item inside overlayChild, i want to close the dropdown. Is there a key or smth else for it?

@TrangLeQuynh
Copy link
Owner

How to close dropdown programmatically? For example, when I press on an item inside overlayChild, i want to close the dropdown. Is there a key or smth else for it?

Because I want to build a dynamic dropdown so everyone can freely customize it.
To close, you just need to close the routing.

Navigator.pop(context);

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

2 participants