Skip to content

Instantly share code, notes, and snippets.

@diegoveloper
Created July 30, 2018 19:29
Show Gist options
  • Save diegoveloper/262e7abe36d18255441f870cc5be7e92 to your computer and use it in GitHub Desktop.
Save diegoveloper/262e7abe36d18255441f870cc5be7e92 to your computer and use it in GitHub Desktop.
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