Save TextField value to an integer stored in an App State list

Actions & Logic

I have a custom Data Type (`GamePlay`) that includes an Integer (`minute`). I have an App State variable that is a list of GamePlays and a ListView that generates dynamic children based on that App State variable. The ListView items are FlippableCards, and I'd like the user to update the value of minute for the current ListView item via a TextField. When trying to set the value using an On Submit action, I'm unable to select minute (I assume because the TextField's value is a String, and minute is an Integer). There is no option to use a Code Expression in the Variable Setter.

How do I set an Integer value from a TextField?

What have you tried so far?

Searched the community & Google. Tried to use a Custom Expression, but that option is not available.

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