More fixes for the prefer_const_literals_to_create_immutables analyzer check (#15363)
See 3961306bad
This commit is contained in:
committed by
Ian Hickson
parent
3961306bad
commit
4b56ba17d5
@@ -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),
|
||||
],
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user