Commit d2a85113 authored by Brian Egan's avatar Brian Egan

Example: Tap icon to pop (for iOS)

parent ad6cb2c1
......@@ -56,7 +56,11 @@ class FontAwesomeGalleryHomeState extends State<FontAwesomeGalleryHome> {
context,
new MaterialPageRoute<Null>(
builder: (BuildContext context) {
return new Container(
return new GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: new Container(
color: Colors.white,
child: new SizedBox.expand(
child: new Hero(
......@@ -67,6 +71,7 @@ class FontAwesomeGalleryHomeState extends State<FontAwesomeGalleryHome> {
),
),
),
),
);
},
),
......
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