Skip to content

Added onPressedWithPosition function to get the position of the menu when opened #61

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JI-0
Copy link

@JI-0 JI-0 commented Jul 13, 2024

Not sure how desired this is be but can be useful to some in case of building pie menu inside a pie menu or creating reaction animations on top.

Copy link
Owner

@rasitayaz rasitayaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature makes sense, but why didn't you invoke the callback with the rest of them? (onPressed and onPressedWithDevice)

Also, I think we should combine these three callbacks into a single one with an optional 'details' param, which will include both device kind and offset.

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

Successfully merging this pull request may close these issues.

2 participants