Skip to content

Instantly share code, notes, and snippets.

@RafaelBarbosatec
Last active May 21, 2018 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RafaelBarbosatec/9b63b31610432ddb8f684fc6ff640a0a to your computer and use it in GitHub Desktop.
Save RafaelBarbosatec/9b63b31610432ddb8f684fc6ff640a0a to your computer and use it in GitHub Desktop.
new Material(
borderRadius: new BorderRadius.circular(6.0),
elevation: 2.0,
child: new Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
//Adicionamos aqui FadeInImage que é uma variande do widget Image. Ela nos possibilita carregar image de uma URL
new FadeInImage.assetNetwork(
placeholder: '',
image: _img,
fit: BoxFit.cover,
width: 95.0,
height: 95.0
),
new Column(
crossAxisAlignment:CrossAxisAlignment.start,
children: <Widget>[
new Text(_title),
new Text(_date),
new Text(_description)],
)
],
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment