Remove new keyword from sample code (#22465)

This commit is contained in:
Rui Kowase 2018-10-04 01:11:29 +09:00 committed by Alexandre Ardhuin
parent b08f36e3cc
commit b9f6e2c315

View file

@ -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'),
],
);
}