How do i set the border of a container inside carousel when tapped on an image?

Widgets & Design

I am trying to have image buttons so if tapped on one image there is an animated border on that image and if i select another image it shows border on that and removes from the previous one, more like Image Radio Buttons, i set page state for border and use that variable and on image tap has an action but it doesn't seem to work, can you suggest the best way to approach this?

Thankyou.

What have you tried so far?

Tried setting up page state variable and populate with actions, variables are being populated but it doesn't change the border nor does any animation.

Did you check FlutterFlow's Documentation for this topic?
No