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

Closing dialog programmatically #4

Closed
Ro-El opened this issue Jan 28, 2021 · 4 comments
Closed

Closing dialog programmatically #4

Ro-El opened this issue Jan 28, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ro-El
Copy link

Ro-El commented Jan 28, 2021

Hi,

Currently opening a materialDialog from a bottomMaterialDialog causes the bottomMaterialDialog to persist. Meaning that two taps are required to exit from both dialogs back to the main screen.

Seems like a method to close a dialog programmatically would help circumvent this problem.

@Ezaldeen99 Ezaldeen99 added the enhancement New feature or request label Jan 29, 2021
@Ezaldeen99 Ezaldeen99 self-assigned this Jan 29, 2021
@Ro-El Ro-El closed this as completed Jan 29, 2021
@Ezaldeen99
Copy link
Owner

Hi, I will start to work on such a feature to add it in the next release

@Ezaldeen99 Ezaldeen99 reopened this Jan 29, 2021
@Ro-El
Copy link
Author

Ro-El commented Jan 29, 2021

Hi, I will start to work on such a feature to add it in the next release

You can achieve the desired effect by using navigator.pop(context) before calling the second dialog. Not sure if a more elegant solution is possible.

@Ezaldeen99
Copy link
Owner

great to know that you have it done

@akhilgorantala
Copy link

@Ro-El can u explain properly once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants