-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Don't leave timer running during tear-down of widget tree #35
Conversation
Thanks for this pull request 👍 |
I'm having the problem
as in #34 Can you please update the package version, so I can use the above fix? |
Waiting on simc/auto_size_text#35 to be implemented in auto_size_text
The error still happens (in my case with Flutter 1.20.3). @leisim Are you still actively maintaining this package, or would you recommend forking and continuing under another name? |
@garry-jeromson you can put this in pubspec.yaml:
|
I really enjoy this package but i got this error too, @nohli comment fix the problem but i'm worry with the maintence of the package. |
Wow, this still hasn't been part of a new release yet? @leisim could you please create one? |
Sorry to reborn this PR but this solution isn't working for me anymore, i'm getting:
|
Fixes #34 by using
scheduleMicroTask
rather thanTimer.run
. This ensures that there are no outstanding timers when the widget tree is torn down.