How can I restart AnimationController

yong soon ryu 1 Reputation point

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_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);

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,597 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,681 Reputation points

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

    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