Commit b9f6e2c3 authored by Rui Kowase's avatar Rui Kowase Committed by Alexandre Ardhuin

Remove `new` keyword from sample code (#22465)

parent b08f36e3
......@@ -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'),
],
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment