Commit 9cfcd3fd authored by Hans Muller's avatar Hans Muller Committed by GitHub

Corrected the "Routes can return a value" example (#7638)

parent 1426ef99
......@@ -368,9 +368,9 @@ typedef bool RoutePredicate(Route<dynamic> route);
/// bool value = await Navigator.of(context).push(new MaterialPageRoute<bool>(
/// 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); }
/// ),
/// );
/// }
......
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