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
Using new parameter 'interval' (v. 0.2.0) causes exception #11
Comments
Perhaps at line 40 of
... in theory after the widget is removed from the tree (disposed) the state is unmonted so it will never try to animate after that. EDIT: I tested this change (directly modifying the sources from the flutter directory) and it works, so it would be useful to integrate this patch in the project for next release... |
Thank you for raising this issue. I would integrate this ASAP or would you like to open a Pull request, since I see that you have already tried and tested this? |
Since it's just an "if" statement it would be simpler for you integrate
this, so I don't have to clone the project just for this... you know, I
just changed that line "on the fly" on the flutter downloaded directory and
tested "on the field" (not automated test or anything), not really the
correct workflow.. just to see if it was "just that"...
Thanks.
Il lun 12 ott 2020, 16:47 Madhav Baveja <notifications@github.com> ha
scritto:
… Thank you for raising this issue. I would integrate this ASAP or would you
like to open a Pull request, since I see that you have already tried and
tested this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALAIBCYGBXI7HIYG2H3Z7LSKMJH3ANCNFSM4SMPARIQ>
.
|
I totally agree, will do it, its just that I won't be able to push it out now due to some reasons, would try to do it in a couple of days! Thanks again for sharing this 🙌 |
When the widget is removed from the widget tree it still tries to animate, causing the following exception:
In brief the internally used
AnimationController
has already been disposed (correctly) when the internalFuture
(used to delay the shimmer) tries to animate forward.To reproduce the problem just create a basic app with a button to perform a Navigator.push to push a route, with a Page that use the Shimmer with the "interval" param, and then just press "back" or programmatically add a button to perform the Navigator.pop in order to remove the Shimmer widget from the widget-tree. Wait the 'interval' delay to see the exception.
The text was updated successfully, but these errors were encountered: