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

how to get index when click point element? #54

Closed
wiztensai opened this issue Feb 19, 2022 · 4 comments
Closed

how to get index when click point element? #54

wiztensai opened this issue Feb 19, 2022 · 4 comments

Comments

@wiztensai
Copy link

hi, thanks for this great library. how to get index? because i want to show alert dialog when user click pointElement

@entronad
Copy link
Owner

The GeomElement.selectionChannel's stream will eject a value when you select an element item. This value contains a set of selected indexes. see details in:
https://pub.dev/documentation/graphic/latest/graphic/GeomElement/selectionChannel.html

@wiztensai
Copy link
Author

do you have its example?

@entronad
Copy link
Owner

@wiztensai
Copy link
Author

thanks bro!!

heatmapChannel.stream.listen((event) {
      print(event);
});

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