Ametaplus GmbH
 · seitenkreativ.com

Set state of custom widget

Custom Code

I wonder how this is theoretically possible: How do I set the value(s) of a custom widget from "outside"?

In my example: I have a RangeSlider. To get the values "out" of the widget is no problem, either with callback-actions or FFState(). But when I want to connect it to textfields (so that the user can either type in values or use the slider) - how do I set the current values from "outside"?
I'm not posting any code - it's more like: How could I achieve this? Did anybody manage and has an example for me?

Thanks!

What have you tried so far?

A lot of things...e. g. I tried to use ChatGPT to create "listeners" - but since I am not advanced in flutter-programming, I could not get it to work.

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