While reading the Flutter documentation, I came across this article that shows how to handle changes to a text field. What I found interesting is that in this and all other articles regarding TextEditingController
, the TextEditingController
is always used in a Stateful widget regardless of whether that widget needs to be stateful or not.
What is the reason that TextEditingController
is always used with Stateful widgets?