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
Does the animations array work? #3
Comments
Yea it's running them sequentially, I played around with parallel for things like multiple navigation simultaneously but it didn't seem do-able from my modest understanding of Flutter. Instead I'd put multiple animations into one component and then run that entire component as one warmup animation if you wanted multiple animations warmed up in parallel. It looks like the line you linked is a typo though and should be
I can fix that tonight. |
I think that's not the only problem, from what I'm testing atm (maybe I'm wrong), but here:
It seems to me that the problem is that this |
Yea that's because of the issue I showed above, it doesn't move on to the 2nd animation because
evaluates to
is in I think it'll be fine. If you had 3 animations in the array then it should run twice, it's an off by one error i believe. Let me know if that's not what you're seeing |
it isn't, no. I changed it to: I'm still trying to navigate and understand the code, but I believe it is because the I'm not sure why the instances of |
yea it should be distinct warmup_animation instances passed to the animations list so they shouldn't share the same repeat counter. I'll take a look this evening but that would be unexpected. |
Thanks for your time dan, no rush. Just a little more detail, I've managed to get it working by doing this on the
This obviously only works in my case with 2 animations in the array, but it was just for testing purposes. |
@MiguelSOliveira if you set the variable 'hasReachedZero' to false like this in `} else {
it's suitable for more than only two animations (I've tested it). |
On
WarmupOverlay
, there exists a prop calledanimations
, which is an array. Just wondering if that means that we can pass multiple animations to that array and they are run sequentially/in parallel?I can't seem to get it to work.
I think this is handled on
warmup_routine.dart
, where I see the following:I dont understand this line, however
if (_animationIndex < widget.animations.length - 2) {
?Am I missing something?
Thanks for the package, btw!
The text was updated successfully, but these errors were encountered: