1

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.

Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138

1 Answers1

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