Add more docs around .of functions (#6482)

This commit is contained in:
Ian Hickson
2016-10-24 11:17:34 -07:00
committed by GitHub
parent 995fd27edd
commit c895d2f6f5
20 changed files with 213 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class _PersistentBottomSheetDemoState extends State<PersistentBottomSheetDemo> {
content: new Text('You tapped the floating action button.'),
actions: <Widget>[
new FlatButton(
onPressed: () { Navigator.of(context).pop(); },
onPressed: () { Navigator.pop(context); },
child: new Text('OK')
)
]