mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-24 17:00:25 +08:00
updated readme of each example with a screenshot/gif and more details about the example.
added more comments to code
This commit is contained in:
@ -30,9 +30,11 @@ class MyAppState extends State<MyApp> {
|
||||
.of(context)
|
||||
.loadString('data_repo/starwars_data.json'),
|
||||
builder: (context, snapshot) {
|
||||
// Decode the JSON
|
||||
var new_data = JSON.decode(snapshot.data.toString());
|
||||
|
||||
return new ListView.builder(
|
||||
// Build the ListView
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return new Card(
|
||||
child: new Column(
|
||||
|
Reference in New Issue
Block a user