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

NoSuchMethodError: The method 'stop' was called on null. Receiver: null Tried calling: stop() #11

Open
pawlowskim opened this issue Aug 28, 2020 · 0 comments

Comments

@pawlowskim
Copy link

Hi, I'm receiving this error on our production application. Our usage is not good enough, I just spotted it, we are using timer to delay some action then call snap method. We are using delays, but also there is delay in the snap method itself. Before calling _animationController.forward(); you should check if controller is not null and widget is mounted.
snappable: 1.0.1, error:

Non-fatal Exception: NoSuchMethodError: The method 'stop' was called on null.
Receiver: null
Tried calling: stop()
0  ???                            0x0 stop + 738 (animation_controller.dart:738)
1  ???                            0x0 _animateToInternal + 576 (animation_controller.dart:576)
2  ???                            0x0 forward + 458 (animation_controller.dart:458)
3  ???                            0x0 snap + 161 (snappable.dart:161)
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

1 participant