Commit 778b30ac authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by Ian Hickson

prefer_const_constructor in packages/flutter/bin (#7180)

parent c8447c91
...@@ -23,7 +23,7 @@ void main() { ...@@ -23,7 +23,7 @@ void main() {
children: <Widget>[ children: <Widget>[
new Expanded( new Expanded(
child: new Center( child: new Center(
child: new FlutterLogo(size: 100.0), child: const FlutterLogo(size: 100.0),
), ),
), ),
new Expanded( new Expanded(
...@@ -32,11 +32,11 @@ void main() { ...@@ -32,11 +32,11 @@ void main() {
List<Widget> children = <Widget>[]; List<Widget> children = <Widget>[];
children.add(new Text( children.add(new Text(
message, message,
style: new TextStyle(fontSize: 24.0), style: const TextStyle(fontSize: 24.0),
textAlign: TextAlign.center textAlign: TextAlign.center
)); ));
if (progressMax >= 0.0) { if (progressMax >= 0.0) {
children.add(new SizedBox(height: 18.0)); children.add(const SizedBox(height: 18.0));
children.add(new Center(child: new CircularProgressIndicator(value: progressMax > 0 ? progress / progressMax : null))); children.add(new Center(child: new CircularProgressIndicator(value: progressMax > 0 ? progress / progressMax : null)));
} }
return new Block(children: children); return new Block(children: children);
...@@ -45,7 +45,7 @@ void main() { ...@@ -45,7 +45,7 @@ void main() {
), ),
new Expanded( new Expanded(
child: new Block( child: new Block(
padding: new EdgeInsets.symmetric(horizontal: 24.0), padding: const EdgeInsets.symmetric(horizontal: 24.0),
children: <Widget>[ new Text(explanation, textAlign: TextAlign.center) ] children: <Widget>[ new Text(explanation, textAlign: TextAlign.center) ]
), ),
), ),
......
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