Flutter Flow - Use actions provided by Parent component in Child Component

I am using Flutter flow to build an app that has a List view of buttons which when clicked changes the background of the list view. So, for example, my list has 2 items Nature and Space, when Nature is clicked it should change the background of the List view (NOT button) (container not the actual widget itself) to nature's image and similarly for space.

How I am trying to achieve this:
I have made an item as a reusable component that takes an action as a parameter.
Example:
Image of the section showing a list of parameters for the child component

In the parent list view, one state variable is being used to define the background image, and as the definition of the child's action parameter (in this example: updateMenuImage), this variable is updated based on the action's parameter.

Image of the section showing how the parameter is defined in the parent

Now, the problem is in the Action Editor of the child widget, I am not getting any option to select this action (which is passed as a component parameter to it).

I would like to know, how we can achieve this or if it is not possible with the current release.

How it is being used in the Button of List View

3
2 replies