How can I update the App State value with value from custom function

Custom Code

I'm doing a sum of values and saving it in a local variable using custom functions. The result it's been shown in a text widget. But I need to access this value to send it to a supabase table.

What have you tried so far?

So my first thought was to pass the value to an app state variable, I tried FFAppState(), but it doesn't compile. There's an error

Type: InvalidType

The function 'FFAppState' isn't defined.
Try importing the library that defines 'FFAppState', correcting the name to the name of an existing function, or defining a function named 'FFAppState'.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
4 replies