mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Corrected the "Routes can return a value" example (#7638)
This commit is contained in:
parent
1426ef9944
commit
9cfcd3fdec
@ -368,9 +368,9 @@ typedef bool RoutePredicate(Route<dynamic> route);
|
|||||||
/// bool value = await Navigator.of(context).push(new MaterialPageRoute<bool>(
|
/// bool value = await Navigator.of(context).push(new MaterialPageRoute<bool>(
|
||||||
/// builder: (BuildContext context) {
|
/// builder: (BuildContext context) {
|
||||||
/// return new Center(
|
/// return new Center(
|
||||||
/// child: new FlatButton(
|
/// child: new GestureDetector(
|
||||||
/// child: new Text('OK'),
|
/// child: new Text('OK'),
|
||||||
/// onPressed: () { Navigator.of(context).pop(true); }
|
/// onTap: () { Navigator.of(context).pop(true); }
|
||||||
/// ),
|
/// ),
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
|
Loading…
Reference in New Issue
Block a user