Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ button:

<!--
class MyButton extends IconButton {

MyButton({ Key key, Widget child }) : super(key: key, child: child);
}
-->
```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(
Expand Down Expand Up @@ -248,7 +248,11 @@ of the checkbox to the underlying application data model.

<!--
class MyButton extends IconButton {
MyButton({onPressed}) : super(onPressed: onPressed);
MyButton({
Key key,
Widget child,
GestureTapCallback onPressed
}) : super(key: key, child: child, onPressed: onPressed);
}
-->
```dart
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.

<!-- skip -->
```dart
debugDumpApp();
```