Skip to content
Merged
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
6 changes: 2 additions & 4 deletions tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ mentioned earlier:

```dart
class Counter extends StatefulComponent {
Counter({ Key key }) : super(key: key);
_CounterState createState() => new _CounterState();
}

Expand Down Expand Up @@ -283,15 +282,15 @@ see how that works in practice, with this slightly more complex example:

```dart
class CounterDisplay extends StatelessComponent {
CounterDisplay({ Key key, this.count }) : super(key: key);
CounterDisplay({ this.count });
final int count;
Widget build(BuildContext context) {
return new Text('Count: $count');
}
}

class CounterIncrementor extends StatelessComponent {
CounterIncrementor({ Key key, this.onPressed }) : super(key: key);
CounterIncrementor({ this.onPressed });
final VoidCallback onPressed;
Widget build(BuildContext context) {
return new RaisedButton(
Expand All @@ -302,7 +301,6 @@ class CounterIncrementor extends StatelessComponent {
}

class Counter extends StatefulComponent {
Counter({ Key key }) : super(key: key);
_CounterState createState() => new _CounterState();
}

Expand Down