From 9860f52ea5bc5ad4e4f5ef52947b092119e725c1 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Thu, 12 Nov 2020 18:14:03 -0800 Subject: [PATCH] Add casts to widgets_test.dart to fix the engine roll. (#70423) --- packages/flutter_localizations/test/widgets_test.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/flutter_localizations/test/widgets_test.dart b/packages/flutter_localizations/test/widgets_test.dart index c0bad1483b..363fa65488 100644 --- a/packages/flutter_localizations/test/widgets_test.dart +++ b/packages/flutter_localizations/test/widgets_test.dart @@ -689,8 +689,11 @@ void main() { const OnlyRTLDefaultWidgetsLocalizationsDelegate(), ], buildContent: (BuildContext context) { - final Locale locale1 = ui.window.locales!.first; - final Locale locale2 = ui.window.locales![1]; + // TODO(gspencergood): remove the casts once + // https://github.com/flutter/engine/pull/22473 rolls into the + // framework. + final Locale locale1 = ((ui.window.locales as dynamic) as List).first; + final Locale locale2 = ((ui.window.locales as dynamic) as List)[1]; return Text('$locale1 $locale2'); }, )