TextField Word Count

Actions & Logic

I want to count the number of words written in real time inside a text field.

I created a TextField Widget and added a Text Widget below it.

First, when I try to add my onChange function with a custom action to the TextField, the action is not getting saved. What do I do?

Second, how can I add the TextEditingController context that I obtained from the TextField widget to the Text widget?

What have you tried so far?

I tried to add my onChange function with a custom action to the TextField.
I attempted to pass the controller of the TextField widget into the Text widget.

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