Flutter: Is it Possbile to have Multiple Futurebui

2019-07-25 04:05发布

问题:

So let's say I'm fetching different List from Different Url's so The Future function will look like this

Future<List<City>> getCityDetails(Region selectedRegion) async {}
Future<List<Region>> getregionDetails() async {}

thus the Widget Builder will look like this

 FutureBuilder<List<Region>>(
        future: getregionDetails(),
        builder: (context, snapshot) {}

is there a way or work around in this one? I'm trying to find an answer how to implement this one or is there another way?

回答1:

i think you are looking for something like this



标签: dart flutter