How to use nested (or several) Future.builder in Flutter?
write another function that merges all three
Future <List<Result>> fetchResults(int mv_id1, int mv_id2, int mv_id3) async { List<Result> results = []; final result1 = await fetchResult1(mv_id1); final result2 = await fetchResult2(mv_id2); final result3 = await fetchResult3(mv_id3); results.addAll(result1); results.addAll(result2); results.addAll(result3); return results;}
and then use it as the future
of your futureBuilder
FutureBuilder<List<Result>>( future: fetchResults(param1, param2, param3), ...