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), ], ));