'Multiple AnimationController in ListView.builder Flutter

I’m trying to send the controller value (from the parent page) to animate the animations on the child page.

the result that I expected is only one animation that’s been clicked being animated, but what I got is all of the animations being animated at the same time.

How can I differentiate the controller based on the index of the data that’s been clicked?

Any answer would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source