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

oncompleted listner method needed once the feature_discovery completes #44

Open
LOG-TAG opened this issue Sep 30, 2020 · 2 comments
Open

Comments

@LOG-TAG
Copy link

LOG-TAG commented Sep 30, 2020

Hi we have a scenario once the feature_discovery completes the bottom sheet should open, how can we do that? or adding on the model bottom sheet possible?

@ayalma
Copy link
Owner

ayalma commented Nov 21, 2020

I think onComplete parameter is suitable for you'r requirement

@yostrokon
Copy link

Yes, will agree. There is a strange behaviour using onComplete
I'm trying to realize "don't show again" functionality on the last screen of series of 4 discoveries

in the last of the described overlays i have a checkbox
so
first run
feature1
feature2
feature3
feature4

are displayed without any problem and on feature4 i'm executing
onComplete: () async {
if(!_saveDiscovery) {
await FeatureDiscovery.clearPreferences(context, _features);
}
return true;
}

on the next run i have displayed feature1, feature2, feature3, but not feature4. It's like marks feature4 complete after clearPreferences that are in the onComplete

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

3 participants