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
Can I disable completion just for a period of time ? #26
Comments
As far as I understand your problem |
Using Future.delayed and then returning true will only delay the completion but the completion will still fire the moment the user clicks on tap target. |
Your first suggestion should work. * (actually it is not called if it has been called just before and hasn't completed yet). |
Please test any feature with this as the onComplete parameter |
@andrewwahid You're right, in fact there is a bug in the implementation. I'm working on a fix (#28). |
@axel-op any updates on the fix ? |
It has been merged in master and will be published under version 0.12.0. |
My feature discovery fires when the user spams a certain button
When he spams that button the feature discovery appears but since he is spamming the button he presses on the feature tap target and the feature disappears.
I want to disable the feature tap target for a small period of time to ensure the user have read the feature discovery
Approach ##1: I set onComplete to return a boolean variable and after 1.5 seconds of the feature firing change the variable's value
Problem: onComplete is called only once so if it was fired first time with return value of false, it won't be fired again no matter what.
Approach ##2: Use AbsorbPointer to absorb all touch events of the Feature overlay
Problem: I don't know why but AbsorbPointer doesn't work with the Feature overlay (my theory is because that the widget is overlayed on top of the MaterialApp and not my current context widget)(placing an AbsorbPointer on top my material app is not an option!)
I am open to any suggestions
Thanks in advance!
The text was updated successfully, but these errors were encountered: