Skip to content

Instantly share code, notes, and snippets.

@RafaelBarbosatec
Created September 14, 2018 03:01
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/bbda0dd7021383ba5d14b655baf8c8e0 to your computer and use it in GitHub Desktop.
Save RafaelBarbosatec/bbda0dd7021383ba5d14b655baf8c8e0 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
this._context = context;
//Foi adicionado dentro de Container para adicionar margem no item
return new Container(
margin: const EdgeInsets.only(
left: 10.0, right: 10.0, bottom: 10.0, top: 0.0),
child: new Material(
borderRadius: new BorderRadius.circular(6.0),
elevation: 2.0,
child: new InkWell(
onTap: showDetail,
splashColor: Colors.blue,
child: _getListTile(),
),
),
);
}
showDetail() {
Navigator
.of(_context)
.push(new MaterialPageRoute(builder: (BuildContext context) {
return new Detail(_img, _title, _date, _description);
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment