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

Hide tooltips after a duration ? #64

Closed
litang0908 opened this issue Mar 17, 2022 · 2 comments
Closed

Hide tooltips after a duration ? #64

litang0908 opened this issue Mar 17, 2022 · 2 comments

Comments

@litang0908
Copy link

Hi,
Thanks for this amazing repo, the only question is how can hide the tooltip after a duration?

@entronad
Copy link
Owner

This is a good question! I haven't thought before.

Here is my idea to achieve that:

The tooltip is controlled by selection, showing triggered by on signals and hiding triggered by clear signals (doubleTap by default).

There is a way to emit and detect signals manually: the signalChannel of the element. it is a Dart StreamController. By this method, you can do some magic, like when tooltip is triggered by tapping, record and start a timer, and emit a doubleTap signal back to the chart after a duration.

Please try this way.

@litang0908
Copy link
Author

Thank you for your reply, i will try it later then add more feedbacks.

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