How can I restart AnimationController

yong soon ryu 1 Reputation point
2020-06-01T06:08:39.97+00:00

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 Monitored
Not Monitored
Tag not monitored by Microsoft.
35,958 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,576 Reputation points
    2020-06-01T12:03:02.6+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

  2. 2022-06-20T09:33:55.72+00:00

    Thanks a lot .

    0 comments No comments