Commit 4b56ba17 authored by Jason Simmons's avatar Jason Simmons Committed by Ian Hickson

More fixes for the prefer_const_literals_to_create_immutables analyzer check (#15363)

See https://github.com/flutter/flutter/commit/3961306badd313a3f34c5c25a754c1e53a581caf
parent 3961306b
......@@ -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,
],
......
......@@ -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),
],
));
......
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