1 min readSep 13, 2018
Great article, I implement localization with the help of this article, but whenever I click on the other language button it shows an error message for fraction of second and then works. AppTranslations class throws the error message, in which it says _localisedValues was called on null(and after a fraction of second it works).
String text(String key) {
return _localisedValues[key] ?? “$key not found”;
}