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

Perform task when tap/click on a chart window. #44

Closed
drmirk opened this issue Jan 11, 2022 · 2 comments
Closed

Perform task when tap/click on a chart window. #44

drmirk opened this issue Jan 11, 2022 · 2 comments

Comments

@drmirk
Copy link

drmirk commented Jan 11, 2022

I am showing multiple charts using column. When user clicks/taps on a chart window. I need to perform some specific task. I tried with gesture detector as chart parent widget. But gesture detector is not detecting any gesture.
Can you please help me solve this?

@entronad
Copy link
Owner

In Flutter gesture arena system, only one detector can capture a gesture at one time. The chart is part of the arena system, so the above charts "win" their parent widget in the arena.
The solution is try to ignore the chart widget: https://stackoverflow.com/questions/50600747/flutter-ignore-touch-events-on-a-widget

@drmirk
Copy link
Author

drmirk commented Jan 11, 2022

Thank you so, so much for your quick reply, and for the suggestion. I just solved my issue. Thank you very much, really appreciate it.

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