diff --git a/packages/flutter/lib/src/widgets/navigator.dart b/packages/flutter/lib/src/widgets/navigator.dart index f3385b95f03..60bf8d40dfa 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); } /// ), /// ); /// }