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

Getting NoSuchMethodError #9

Closed
mike-gallego opened this issue Aug 24, 2019 · 4 comments
Closed

Getting NoSuchMethodError #9

mike-gallego opened this issue Aug 24, 2019 · 4 comments

Comments

@mike-gallego
Copy link

mike-gallego commented Aug 24, 2019

When I try to add a showcase widget in my app, I get the the NoSuchMethodError.
GlobalKey _swipeKey = GlobalKey();

@override void initState() { super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) =>ShowCaseWidget.startShowCase(context, [_swipeKey]));}

NoSuchMethodError: The getter 'activeWidgetIds' was called on null.

@simform-solutions
Copy link
Collaborator

simform-solutions commented Aug 26, 2019

@mikeyyg96 are you passing _swipeKey in Showcase widget's key parameter?

@ziggycrane
Copy link

Tried it out, I get the same message.

@ziggycrane
Copy link

This error is thrown if you haven't wrapped your widget with ShowCaseWidget. This is not the problem with the package itself.

@simform-solutions
Copy link
Collaborator

simform-solutions commented Aug 27, 2019

@mikeyyg96 & @ziggycrane
Thank you for using our package,
Closing issue as it was implementation mistake.

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