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

刷新启动之后页面dispose 动画报错 #199

Closed
qylshy opened this issue Nov 28, 2019 · 2 comments
Closed

刷新启动之后页面dispose 动画报错 #199

qylshy opened this issue Nov 28, 2019 · 2 comments

Comments

@qylshy
Copy link

qylshy commented Nov 28, 2019

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 508 pos 7: '_ticker != null': AnimationController.animateTo() called after AnimationController.dispose()
E/flutter ( 4086): AnimationController methods should not be used after calling dispose.
E/flutter ( 4086): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter ( 4086): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter ( 4086): #2 AnimationController.animateTo (package:flutter/src/animation/animation_controller.dart:508:7)
E/flutter ( 4086): #3 MaterialHeaderWidgetState.refreshFinish=. (package:flutter_easyrefresh/material_header.dart:146:28)
E/flutter ( 4086): #4 new Future.delayed. (dart:async/future.dart:316:39)
E/flutter ( 4086): #5 _rootRun (dart:async/zone.dart:1120:38)
E/flutter ( 4086): #6 _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter ( 4086): #7 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter ( 4086): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter ( 4086): #9 _rootRun (dart:async/zone.dart:1124:13)
E/flutter ( 4086): #10 _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter ( 4086): #11 _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter ( 4086): #12 Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter ( 4086): #13 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter ( 4086): #14 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter ( 4086): #15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

源代码:
image

@xuelongqy
Copy link
Owner

已修复,将会在下一个版本中发布

@xuelongqy
Copy link
Owner

已更新,请升级至2.0.5版本

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

2 participants