mirror of
https://github.com/flutter/flutter
synced 2024-08-27 03:50:33 +00:00
Remove new
keyword from sample code (#22465)
This commit is contained in:
parent
b08f36e3cc
commit
b9f6e2c315
|
@ -71,13 +71,13 @@ class CounterState extends State<Counter> {
|
|||
// build methods fast, so that you can just rebuild anything that
|
||||
// needs updating rather than having to individually change
|
||||
// instances of widgets.
|
||||
return new Row(
|
||||
return Row(
|
||||
children: <Widget>[
|
||||
new RaisedButton(
|
||||
RaisedButton(
|
||||
onPressed: increment,
|
||||
child: new Text('Increment'),
|
||||
child: Text('Increment'),
|
||||
),
|
||||
new Text('Count: $counter'),
|
||||
Text('Count: $counter'),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue