snappable
snappable copied to clipboard
NoSuchMethodError: The method 'stop' was called on null. Receiver: null Tried calling: stop()
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)