I want to use FutureBuilder, but make it build after waiting for 2 async functions to end.
In the Flutter docs, it says Widget that builds itself based on the latest snapshot of interaction with a Future.
So it builds after one function, not waiting for the other.
Future<int> futureInit() async {
await functionA();
await functionB();
return 0;
}
My code is like this, so the future builder builds after just function A.
How can I make it wait for the both functions to end and then start building?