From 778b30ac0bfad0bf95b500617e40c8d877afabea Mon Sep 17 00:00:00 2001 From: Alexandre Ardhuin Date: Sat, 10 Dec 2016 00:20:33 +0100 Subject: [PATCH] prefer_const_constructor in packages/flutter/bin (#7180) --- packages/flutter/bin/loader/loader_app.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/bin/loader/loader_app.dart b/packages/flutter/bin/loader/loader_app.dart index 5c0ce497cb..32f17c2f5e 100644 --- a/packages/flutter/bin/loader/loader_app.dart +++ b/packages/flutter/bin/loader/loader_app.dart @@ -23,7 +23,7 @@ void main() { children: [ new Expanded( child: new Center( - child: new FlutterLogo(size: 100.0), + child: const FlutterLogo(size: 100.0), ), ), new Expanded( @@ -32,11 +32,11 @@ void main() { List children = []; children.add(new Text( message, - style: new TextStyle(fontSize: 24.0), + style: const TextStyle(fontSize: 24.0), textAlign: TextAlign.center )); 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))); } return new Block(children: children); @@ -45,7 +45,7 @@ void main() { ), new Expanded( child: new Block( - padding: new EdgeInsets.symmetric(horizontal: 24.0), + padding: const EdgeInsets.symmetric(horizontal: 24.0), children: [ new Text(explanation, textAlign: TextAlign.center) ] ), ),