Skip to content

Instantly share code, notes, and snippets.

@Elvis10ten
Last active March 7, 2018 15:46
Show Gist options
  • Select an option

  • Save Elvis10ten/ed5ef60a521c7d98ded2f8f69ce127d1 to your computer and use it in GitHub Desktop.

Select an option

Save Elvis10ten/ed5ef60a521c7d98ded2f8f69ce127d1 to your computer and use it in GitHub Desktop.
void main() async {
// Bad practice alert :). You should ideally show the UI, and probably a progress view,
// then when the requests completes, update the UI to show the data.
List currencies = await getCurrencies();
print(currencies);
runApp(new MaterialApp(
home: new CryptoListWidget(currencies),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment