FlutterFlow Onclick container Dynamically change background color of container in a listview (API data).

l have this listview with container card as a child and data is coming form an API when l click the container l want the clicked container to change background color to green and when l click another container it should reset the previous one to default white color and change the current clicked color to green.

l have tried alot of options no success.

Thank you

EDIT

Anyone facing similar problem you can watch the video below , l created a video how l did it:

https://youtu.be/nRSjTiolxDw

1