Commit d2a85113 authored by Brian Egan's avatar Brian Egan

Example: Tap icon to pop (for iOS)

parent ad6cb2c1
...@@ -56,14 +56,19 @@ class FontAwesomeGalleryHomeState extends State<FontAwesomeGalleryHome> { ...@@ -56,14 +56,19 @@ class FontAwesomeGalleryHomeState extends State<FontAwesomeGalleryHome> {
context, context,
new MaterialPageRoute<Null>( new MaterialPageRoute<Null>(
builder: (BuildContext context) { builder: (BuildContext context) {
return new Container( return new GestureDetector(
color: Colors.white, onTap: () {
child: new SizedBox.expand( Navigator.of(context).pop();
child: new Hero( },
tag: icon, child: new Container(
child: new Icon( color: Colors.white,
icon.iconData, child: new SizedBox.expand(
size: 100.0, child: new Hero(
tag: icon,
child: new Icon(
icon.iconData,
size: 100.0,
),
), ),
), ),
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment