Question : flutter futurebuilder future called twice
Answered by : guillaume-vignolle
The future is firing again because you're creating it in the build method at the same time as the FutureBuilder.
From the FutureBuilder docs:
The future must have been obtained earlier, e.g. during State.initState
Source : https://stackoverflow.com/questions/58664293/futurebuilder-runs-twice | Last Update : Tue, 16 Jun 20