Clicking on the text field on login screen was rebuilding the whole screen as the future function was being called again.
In order to fix that, the future function was extracted from the build function and now is being called in the initState to make it run only once.
Clicking on the text field on login screen was rebuilding the whole screen as the future function was being called again. In order to fix that, the future function was extracted from the build function and now is being called in the initState to make it run only once.