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

DIfferent action for closing using dialRoot vs overlay #264

Closed
JLKP001 opened this issue Jun 25, 2022 · 3 comments
Closed

DIfferent action for closing using dialRoot vs overlay #264

JLKP001 opened this issue Jun 25, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@JLKP001
Copy link

JLKP001 commented Jun 25, 2022

I would like to perform a different action when the speed dial is closed via the dialRoot vs the overlay.

I've tried using onClose, but I can't seem to detect if the speed dial was closed via the dialRoot or the overlay. Also, tried using a custom dialRoot, however, it seems like the onPressed function of my custom dialRoot is not triggered when I close the speed dial.

Any ideas on how I can achieve this/ what I am doing wrong?

@luca-colazzo
Copy link
Collaborator

With the code as now, you can't do that. Code should be changed to do that.
If you manage to do this, feel free to open a PR

@luca-colazzo luca-colazzo added the enhancement New feature or request label Jun 25, 2022
@prateekmedia
Copy link
Collaborator

prateekmedia commented Jun 25, 2022

@JLKP001 If you want to do that read #253, for this we would need flutter_portal package support instead of the current Implementation.

Currently Overlay overlaps the dial widget so you can't distinguish.

@JLKP001
Copy link
Author

JLKP001 commented Jun 25, 2022

Thanks for the prompt reply. I'll give it a go and raise a PR if I manage to implement it.

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