I know we can use onChanged()
or we can add listener to the TextEditingController
to listen when we change the text in TextField from here. It will invoke when we start typing something. But I want to know is there any way that after text change (After stopped typing) listener in Flutter something similar to this.
Asked
Active
Viewed 1,263 times
1

Shailendra Madda
- 20,649
- 15
- 100
- 138
-
but it will call when we start typing, I want to know how to listen when we stop typing. – Shailendra Madda Apr 21 '20 at 05:22
-
Yeah, I want to do after stopped typing not on typing – Shailendra Madda Apr 21 '20 at 05:34
-
after typing is different from on typing. There are two override methods in Text Watcher: 1. afterTextChanged 2. onTextChanged. I want afterTextChanged. – Shailendra Madda Apr 21 '20 at 05:40
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/212128/discussion-between-shylendra-madda-and-pskink). – Shailendra Madda Apr 21 '20 at 05:54
1 Answers
2
There are two other callback methods in the TextField class.
check them but If you want to do something when the user stopped typing there is no relative method for it. instead, you should use something like Debouncing. for using debounce you have several options like using a timer or using Streams and RxDart. check below links for complete example:

Payam Zahedi
- 827
- 7
- 20