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

reverse() is called after dispose() #4

Open
volgin opened this issue Dec 26, 2019 · 0 comments
Open

reverse() is called after dispose() #4

volgin opened this issue Dec 26, 2019 · 0 comments

Comments

@volgin
Copy link

volgin commented Dec 26, 2019

If a user navigates away while the button is animating, the widget throws an unhandled exception:

[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 484 pos 7: '_ticker != null': AnimationController.reverse() called after AnimationController.dispose()
AnimationController methods should not be used after calling dispose.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:42:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:38:5)
#2      AnimationController.reverse (package:flutter/src/animation/animation_controller.dart:484:7)
#3      _ProgressButtonState._reverse (package:flutter_progress_button/src/widgets/progress_button.dart:210:21)
#4      _ProgressButtonState._onButtonPressed.<anonymous closure> (package:flutter_progress_button/src/widgets/progress_button.dart:161:15)
<asynchronous suspension>
#5      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706:14)
#6      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink<…>

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