diff --git a/tutorial.md b/tutorial.md index b6a75d92a7c..afd8cf5a0f7 100644 --- a/tutorial.md +++ b/tutorial.md @@ -211,13 +211,13 @@ button: ```dart Widget build(BuildContext context) { return new MyButton( - child: new ShrinkWrapWidth( + child: new IntrinsicWidth( child: new Row([ new NetworkImage(src: 'thumbs-up.png', width: 25.0, height: 25.0), new Container( @@ -248,7 +248,11 @@ of the checkbox to the underlying application data model. ```dart @@ -401,7 +405,11 @@ class MyDialog extends StatefulComponent { } class MyButton extends IconButton { - MyButton({onPressed}) : super(onPressed: onPressed); + MyButton({ + Key key, + Widget child, + GestureTapCallback onPressed + }) : super(key: key, child: child, onPressed: onPressed); } --> ```dart @@ -445,10 +453,8 @@ Useful debugging tools This is a quick way to dump the entire widget tree to the console. This can be quite useful in figuring out exactly what is going on when -working with the widgets system. For this to work, you have to have -launched your app with `runApp()`. +working with the widgets system. - ```dart debugDumpApp(); ```