Skip to content

Commit 2ecd920

Browse files
authored
Merge pull request nisrulz#12 from Ephenodrom/patch-1
Update main.dart
2 parents af4420f + 23cf8a8 commit 2ecd920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

load_local_json/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MyAppState extends State<MyApp> {
3131
.loadString('data_repo/starwars_data.json'),
3232
builder: (context, snapshot) {
3333
// Decode the JSON
34-
var new_data = JSON.decode(snapshot.data.toString());
34+
var new_data = json.decode(snapshot.data.toString());
3535

3636
return new ListView.builder(
3737
// Build the ListView

0 commit comments

Comments
 (0)