Where to save the value of TextEditingController in a form

Viewed 40

If I have an editable form "add and edit", which is the best practice to save text from Text Fields Controllers? in view or in controller like bloc or provider?

1 Answers

It is best practice to keep UI related aspects together. So I would recommend storing the TextEditingController within a widget.

Most likely you would need a stateful widget.

Related