Passing color to a component through Component Parameters

Actions & Logic

Hello everyone!

Please help me solve a problem.

I have pages with 3 containers each that change their color when clicked.

I have a component configured to receive various data types, including color, through page parameters.

The component contains a "GridView" widget with many containers.

I want each individual container in the component to take on the color of the selected container from the pages mentioned above.

I want to set everything up without connecting the component to collections; everything should work locally.

What have you tried so far?

An idea that comes to mind is to create variables for each individual page that will store the color of the selected container and then pass this value to the component parameters.

But it seems to me that this would be incorrect, creating such a large number of variables.

For example, if I have 1000 pages, I would need to create 1000 variables.

It seems to me that this would be an impractical approach to this problem.

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