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

FeatureDiscovery.hasPreviouslyCompleted incorrectly show step completion #74

Open
vytautas-pranskunas- opened this issue Jun 10, 2021 · 3 comments

Comments

@vytautas-pranskunas-
Copy link

I have a button which completes current step. Stright after button click i am checking if that step was completed. I get false

TextButton(
            onPressed: () async {
              await FeatureDiscovery.completeCurrentStep(context);
              var isLastStepCompleted =
          await FeatureDiscovery.hasPreviouslyCompleted(context, 'some_key');

         //  isLastStepCompleted is false always
            },
@wizawuza
Copy link

Did you encompass the MaterialApp in a FeatureDiscovery widget, like so?

const FeatureDiscovery(
  child: MaterialApp(
   ...
  )
)

If not try that out.

@vytautas-pranskunas-
Copy link
Author

@wizawuza I did

@kyleorin
Copy link

any update on this?

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