_showGameItem(BuildContext context, BoardGameItem item) { | |
Navigator.push(context, new MaterialPageRoute( | |
builder: (BuildContext context) { | |
return new Scaffold( | |
appBar: new AppBar( | |
title: new Text(item.name) | |
), | |
body: new SizedBox.expand( | |
child: new Hero(tag: item.id, | |
child: new Container( | |
child: new Column( | |
children: <Widget>[ | |
new Container( | |
child: new ConstrainedBox( | |
constraints: const BoxConstraints( | |
maxHeight: 250.0, maxWidth: 250.0), | |
child: new Image.network( | |
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