Changing widget property on click

I have a list view with containers inside that are filled with data from a backend query. When someone selects a container the border should turn black. However, when i do this, because i am using a backend query it applies to all containers. Any idea on how to fix? The print shows what happens after i click in the first option

10 replies