Skip to content

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

Open
JI-0 wants to merge 2 commits into
rasitayaz:mainfrom
JI-0:main
Open

Added onPressedWithPosition function to get the position of the menu when opened#61
JI-0 wants to merge 2 commits into
rasitayaz:mainfrom
JI-0:main

Conversation

@JI-0

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

Copy link
Copy Markdown

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.

@rasitayaz rasitayaz left a comment

Copy link
Copy Markdown
Owner

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