Ask Your Question

Why does FutureBuilder require rebuilding when TextField in Flutter causes the keyboard to disappear?

asked 2021-12-13 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-07 12:00:00 +0000

huitzilopochtli gravatar image

This is because when the keyboard appears or disappears, it triggers a rebuild of the widget tree. The FutureBuilder widget is part of the widget tree and therefore gets rebuilt as well. Thus, the FutureBuilder widget needs to be rebuilt when the TextField causes the keyboard to appear or disappear in order to reflect any changes in the state of the app.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2021-12-13 11:00:00 +0000

Seen: 16 times

Last updated: Sep 07 '21