Created
July 30, 2018 19:29
-
-
Save diegoveloper/262e7abe36d18255441f870cc5be7e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_samples/hero_animations/main_hero_animations.dart'; | |
class Page1 extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Padding( | |
padding: EdgeInsets.all(30.0), | |
child: Stack( | |
children: <Widget>[ | |
Align( | |
alignment: Alignment.center, | |
child: Hero( | |
tag: "hero1", | |
child: Container( | |
height: 250.0, | |
width: 250.0, | |
child: CustomLogo(), | |
), | |
), | |
), | |
OutlineButton( | |
onPressed: () => Navigator.of(context).pop(), | |
child: Icon(Icons.close), | |
) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment