Problem with passing value from widget to update application state

Actions & Logic
Resolved

Hey, everybody. Please help. I am trying to customize roles for my application. For this purpose, I have created an application state variable and specified its data type - enum (which has several values - roles). Then I put a widget (radio buttons or dropdown list) on the application page so that users can choose their role. Then when I add an action when clicking on one of the widget elements - update application state (I choose the previously created state - "role selection") and try to specify that the application state value is taken from the widget state (i.e. to get exactly the value from the dropdown list that the user will choose), then I can't select the widget state because it is lit in red.... I don't understand what the error is... The data types are the same, and in the application state the enum type is selected and the same enum type is selected for the dropdown list values. Please help)

What have you tried so far?

When I tried to do the same thing, but not from the list, but for example from a separate button, everything worked easily. It is not possible to transfer the selected value from the widget with a list of options (tried and drop-down list and radio buttons, still could not). Please help)

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