Unverified Commit 9860f52e authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Add casts to widgets_test.dart to fix the engine roll. (#70423)

parent b47126df
......@@ -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<Locale>).first;
final Locale locale2 = ((ui.window.locales as dynamic) as List<Locale>)[1];
return Text('$locale1 $locale2');
},
)
......
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