Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
_showGameItem(BuildContext context, BoardGameItem item) {
Navigator.push(context, new MaterialPageRoute(
builder: (BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text(
body: new SizedBox.expand(
child: new Hero(tag:,
child: new Container(
child: new Column(
children: <Widget>[
new Container(
child: new ConstrainedBox(
constraints: const BoxConstraints(
maxHeight: 250.0, maxWidth: 250.0),
child: new
item.thumbnailUrl, width: 250.0,
fit: BoxFit.scaleDown)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment