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…
x
Reference in New Issue
Block a user