how to work properly with index using List<data> variable ???</data>

Actions & Logic

Hey lovely people, need some help...

I have a following situation :

Pic1

  • 'iGetDataFromCollection' i receive from variable with 'List<String>' type, since there is no chance to collect it somehow differently from dropdown with multiple selection.

  • and I use as well an index that is being generated by ListView widget

Component itself :

Pic2

Logic I want to implement behind circle containers : each of them has to change its color (color1 if boolean variabe is true and color2 when it's false ) upon tapping.

And looks like everything is simpe and I just need to create new Data Scheme with 7 boolean items and link it to a Variable (List<Data>). Then I need add new 'DataType' parameter to component (Pic2), so from now it has an index (from ListView), name(from List<String>) and recently added List<Data> parameter. Right after that I need to link the parameter to Variable (List<Data>)

Question :

How can I address to a container in order to make a rule for color changing if I don't know its index....

Pic3

maybe I'm doing somethink stupid and there is an easy way to handle all the situation? please help

What have you tried so far?

seems like everything ... =(((

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