Skip to content

Instantly share code, notes, and snippets.

@redbluenat
Created February 15, 2019 15:18
Show Gist options
  • Save redbluenat/0b6f8113754768ccbfd10c952c4ede9e to your computer and use it in GitHub Desktop.
Save redbluenat/0b6f8113754768ccbfd10c952c4ede9e to your computer and use it in GitHub Desktop.
child: new FutureBuilder(
future:
DefaultAssetBundle.of(context).loadString('assets/beers.json'),
builder: (context, snapshot) {
var beers = json.decode(snapshot.data.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment