Update text with custom function result

Custom Code

Hi,

I have a container with different text widgets. One the text widget's content is a string value returned by a custom function. The other text widgets content are values directly taken from a supabase request. The attached picture shows two text widgets one with a custom function output, one with a supabase row field value.

The custom function takes different strings to concatenate as parameters.

When the parameters (taken from a supabase request) from the custom function change, it seems that the function is not executed. Thus the text is not updated.

However I noticed that if I modify once the field (with a refresh database request) displayed in another text widget (e.g 'Prix d'achat'), the custom function will update every time (after) its parameters are updated with a refresh database request.

Is there any known solution ? Is this an expected behavior ?

What have you tried so far?

I also tried to set the text content to a Page State updated after each database requests. I use the rebuild current page feature but it has no effect.

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