Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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,
- ),
- ),
- ),
- );
- }
Add Comment
Please, Sign In to add comment