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> {
context,
new MaterialPageRoute<Null>(
builder: (BuildContext context) {
return new Container(
color: Colors.white,
child: new SizedBox.expand(
child: new Hero(
tag: icon,
child: new Icon(
icon.iconData,
size: 100.0,
return new GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: new Container(
color: Colors.white,
child: new SizedBox.expand(
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