Last active
March 7, 2018 15:46
-
-
Save Elvis10ten/ed5ef60a521c7d98ded2f8f69ce127d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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