Skip to content

Instantly share code, notes, and snippets.

@pedromassango
Created September 24, 2018 12:17
Show Gist options
  • Save pedromassango/6af6024301ece777962bb73ea444cce2 to your computer and use it in GitHub Desktop.
Save pedromassango/6af6024301ece777962bb73ea444cce2 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context){
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.white30,
elevation: 0.0,
title: Text('Hero Page 2',
style: TextStyle(
color: Colors.black
),),
),
body: Padding(
padding: EdgeInsets.only(left: 32.0, top: 16.0),
child: Hero( /// The Hero
tag: 'logo',
child: Image.asset('images/icon_like.png', /// The flying widget
width: 50.0,
height: 50.0,
),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment