From 4b56ba17d55c3f77d6e031b4effdca4e953a82dc Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 9 Mar 2018 16:47:56 -0800 Subject: [PATCH] More fixes for the prefer_const_literals_to_create_immutables analyzer check (#15363) See https://github.com/flutter/flutter/commit/3961306badd313a3f34c5c25a754c1e53a581caf --- .../flutter/test/material/bottom_navigation_bar_test.dart | 2 +- packages/flutter/test/widgets/wrap_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/test/material/bottom_navigation_bar_test.dart b/packages/flutter/test/material/bottom_navigation_bar_test.dart index 3cbded6b32..e4086f3968 100644 --- a/packages/flutter/test/material/bottom_navigation_bar_test.dart +++ b/packages/flutter/test/material/bottom_navigation_bar_test.dart @@ -553,7 +553,7 @@ Widget boilerplate({ Widget bottomNavigationBar, @required TextDirection textDir assert(textDirection != null); return new Localizations( locale: const Locale('en', 'US'), - delegates: >[ + delegates: const >[ DefaultMaterialLocalizations.delegate, DefaultWidgetsLocalizations.delegate, ], diff --git a/packages/flutter/test/widgets/wrap_test.dart b/packages/flutter/test/widgets/wrap_test.dart index 174604a629..20d834e6f5 100644 --- a/packages/flutter/test/widgets/wrap_test.dart +++ b/packages/flutter/test/widgets/wrap_test.dart @@ -835,7 +835,7 @@ void main() { textDirection: TextDirection.ltr, spacing: 10.0, runSpacing: 10.0, - children: [ + children: const [ 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: [ + children: const [ const SizedBox(width: 800.0, height: 0.0), ], ));