1
0
mirror of https://github.com/nisrulz/flutter-examples.git synced 2026-04-03 14:22:03 +00:00

Merge pull request #12 from Ephenodrom/patch-1

Update main.dart
This commit is contained in:
Nishant Srivastava
2018-11-15 23:42:10 +01:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ class MyAppState extends State<MyApp> {
.loadString('data_repo/starwars_data.json'), .loadString('data_repo/starwars_data.json'),
builder: (context, snapshot) { builder: (context, snapshot) {
// Decode the JSON // Decode the JSON
var new_data = JSON.decode(snapshot.data.toString()); var new_data = json.decode(snapshot.data.toString());
return new ListView.builder( return new ListView.builder(
// Build the ListView // Build the ListView