More fixes for the prefer_const_literals_to_create_immutables analyzer check (#15363)

See 3961306bad
This commit is contained in:
Jason Simmons
2018-03-09 16:47:56 -08:00
committed by Ian Hickson
parent 3961306bad
commit 4b56ba17d5
2 changed files with 3 additions and 3 deletions

View File

@@ -553,7 +553,7 @@ Widget boilerplate({ Widget bottomNavigationBar, @required TextDirection textDir
assert(textDirection != null);
return new Localizations(
locale: const Locale('en', 'US'),
delegates: <LocalizationsDelegate<dynamic>>[
delegates: const <LocalizationsDelegate<dynamic>>[
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],

View File

@@ -835,7 +835,7 @@ void main() {
textDirection: TextDirection.ltr,
spacing: 10.0,
runSpacing: 10.0,
children: <Widget>[
children: const <Widget>[
const SizedBox(width: 200.0, height: 10.0),
const SizedBox(width: 200.0, height: 10.0),
const SizedBox(width: 200.0, height: 10.0),
@@ -858,7 +858,7 @@ void main() {
textDirection: TextDirection.ltr,
spacing: 10.0,
runSpacing: 10.0,
children: <Widget>[
children: const <Widget>[
const SizedBox(width: 800.0, height: 0.0),
],
));