Skip to content

Instantly share code, notes, and snippets.

@pedromassango
Last active September 24, 2018 12:08
Show Gist options
  • Save pedromassango/168b2048b8f9c2512437c36a03e9380c to your computer and use it in GitHub Desktop.
Save pedromassango/168b2048b8f9c2512437c36a03e9380c to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return new Container(
color: Colors.white,
child: Column(
children: <Widget>[
Spacer(),
Hero( /// Hero
tag: 'logo',
child: Image.asset('images/icon_like.png'), /// This is the flying widget
),
Spacer(),
MaterialButton(child: Text('Next Screen'),
textColor: Colors.white,
color: Colors.blue,
minWidth: 200.0,
onPressed: _nextScreen,
)
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment