this is the function to call and get the data
Future<CoinGeckoResult<prefix.Coin?>> getCoinData() async {
CoinGeckoApi api = CoinGeckoApi();
var apiDatabitcoin = await api.coins.getCoinData(id:'bitcoin');
return apiDatabitcoin;
}
and this is the widget to show the image:
child: FutureBuilder(
future:getData() ,
builder: (context, snapshot) {
return Container(
child: Column(children: [
Image.network(snapshot.data.toString())
]),
);
})