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

AnimationController.dispose() called more than once #6

Closed
hiddenMonster opened this issue Jun 30, 2020 · 1 comment
Closed

AnimationController.dispose() called more than once #6

hiddenMonster opened this issue Jun 30, 2020 · 1 comment

Comments

@hiddenMonster
Copy link

Hi Sumeet,
How I do with this Exception please?

StackTrace:
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
AnimationController.dispose() called more than once.

A given AnimationController cannot be disposed more than once.

The following AnimationController object was disposed multiple times: AnimationController#8f166(⏮ 0.000; paused; DISPOSED)
When the exception was thrown, this was the stack:
#0 AnimationController.dispose. (package:flutter/src/animation/animation_controller.dart:755:9)
#1 AnimationController.dispose (package:flutter/src/animation/animation_controller.dart:766:6)
#2 _MotionState.dispose (package:motion_widget/motion_widget.dart:153:44)
#3 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4729:12)
#4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1922:13)
...
════════════════════════════════════════════════════════════════════════════════════════════════════

Thank you so much in advance!

@hiddenMonster
Copy link
Author

Hi I solved the above exception by simply not using the Motion parameter exitConfigurations which is suggested in your package instructions, but not mandatory or required !!! I wish this will help other users :)
Your package is amazing!!!
Thank you

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