From 9cfcd3fdecc2cc6a40643b258f8e0ab33225dba2 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 25 Jan 2017 15:00:18 -0800 Subject: [PATCH] Corrected the "Routes can return a value" example (#7638) --- packages/flutter/lib/src/widgets/navigator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/navigator.dart b/packages/flutter/lib/src/widgets/navigator.dart index f3385b95f0..60bf8d40df 100644 --- a/packages/flutter/lib/src/widgets/navigator.dart +++ b/packages/flutter/lib/src/widgets/navigator.dart @@ -368,9 +368,9 @@ typedef bool RoutePredicate(Route route); /// bool value = await Navigator.of(context).push(new MaterialPageRoute( /// builder: (BuildContext context) { /// return new Center( -/// child: new FlatButton( +/// child: new GestureDetector( /// child: new Text('OK'), -/// onPressed: () { Navigator.of(context).pop(true); } +/// onTap: () { Navigator.of(context).pop(true); } /// ), /// ); /// }