Skip to content

Conversation

@rzdong
Copy link

@rzdong rzdong commented Mar 11, 2020

英文官网此处代码没有Null,实际过程中有Null 会报错。

static Future load(Locale locale) {
final String name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
final String localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((Null _) { // 需要去掉这个Null
return DemoLocalizations(localeName);
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant