TextField text Counter

General Conversations

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?

2
1 reply