flutter custom dialog with text field code example
Example: flutter Dialog TextField setState
A very simple solution is to create another stateful widget that renders the content of the dialog. Then, any invocation of the setState will rebuild the content of the dialog.