Flutter, how to return different widget based on future value?
I would like to base on a future bool value, to set different icons pass back to a data card inside a list, I tried .then or FutureBuilder, but still not successful. Scaffold: child: ListView.builder( itemCount: fullList.length, itemBuilder: (BuildContext context, int index) { return dataCard(context, fullList, index); }), dataCard: Row( children: [ Expanded( flex: 8,… Read More Flutter, how to return different widget based on future value?