Instantly share code, notes, and snippets.

Embed
What would you like to do?
example-flutter-1.dart
return new Container(
margin: const EdgeInsets.symmetric(vertical: 6.0, horizontal: 8.0),
child:
new Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Container(
margin: const EdgeInsets.only(right: 16.0),
child: new ConstrainedBox(
constraints: const BoxConstraints(
maxHeight: 100.0, maxWidth: 100.0),
child: new Image.network(
item.thumbnailUrl, width: 100.0, fit: BoxFit.scaleDown)
),
),
new Expanded(
child: new Text(item.name),
),
new Text(item.yearPublished),
]
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment