Skip to content

Instantly share code, notes, and snippets.

@minhnhut0602
Forked from mlabouardy/main.dart
Created November 6, 2019 01:55
Show Gist options
  • Save minhnhut0602/b2290d7c4ece863ac4254e0222da4795 to your computer and use it in GitHub Desktop.
Save minhnhut0602/b2290d7c4ece863ac4254e0222da4795 to your computer and use it in GitHub Desktop.

Revisions

  1. @mlabouardy mlabouardy created this gist Mar 5, 2018.
    10 changes: 10 additions & 0 deletions main.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    @override
    void initState() {
    super.initState();
    http.get(this._apiGatewayURL)
    .then((response) => response.body)
    .then(JSON.decode)
    .then((movies) {
    movies.forEach(_addMovie);
    });
    }