Created
August 30, 2019 21:05
-
-
Save kwalrath/578f5cade51b135cd75fcdcff82d227a 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
| RaisedButton( | |
| onPressed: () { | |
| final myFuture = http.get('https://my.image.url'); | |
| myFuture.then((resp) { | |
| setImage(resp); | |
| }); | |
| }, | |
| child: Text('Click me!'), | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment