question

yongsoonryu-1775 avatar image
0 Votes"
yongsoonryu-1775 asked ·

How can I restart AnimationController

I'm studying AnimationController.
It's working. But always have to call cleanup.

How do I not to reset each time?


If i want to animate control, call this code.

     animation_controller_.CleanUpGroup(1);
    
     animation_color_ = default_color;
     animation_color_.AddTransition(new CAccelerateDecelerateTransition(0.1, GetRValue(target_color)),
         new CAccelerateDecelerateTransition(0.1, GetGValue(target_color)),
         new CAccelerateDecelerateTransition(0.1, GetBValue(target_color)));
    
     animation_color_.SetID(0, 1);
     animation_controller_.AddAnimationObject(&animation_color_);
    
     animation_controller_.AnimateGroup(1);
not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

VaibhavChaudhari avatar image
0 Votes"
VaibhavChaudhari answered ·

It's better to post this on SO forum. Use flutter-animation tag while posting

http://stackoverflow.com/




If the response helped, do "Accept Answer" and upvote it - Vaibhav

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.