How can I change an image to another image on click?

Troubleshooting

Hi there,

I'm new here and I want to have an image (let's say img1). Then, when the user clicks on that image, I want the image to change to another image (img2) and don't allow clicking anymore. How can I do this?

I could not find anything related to this. This is an important thing that I need for my game idea but I cant figure it out. Any help is appreciated. Thanks in advance.

What have you tried so far?

Tried the image properties, but could not find anything.
Looked into forums and videos to find anything similar to this, to no avail.
Tried to look into the documentation but nothing seems to fit with what I need.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
3 replies