Closed apastuhov closed 3 years ago
Hi!
Are you using the ensureInitialized
method to wait the full loading of the widget?
Also, can you give me more detail? For example: if there are particular network conditions, if the translation file is hige...
That method is not working for me, data in it is always null. Working in debug mode from laptop under extra stable WiFi. File is not huge. I will provide more logs and code samples in few hours.
Ping @apastuhov
Closed for inactivity
Hi, I've got next Non-fatal error in crashlytics:
flutter_i18n: ^0.30.0
Translation file is loaded from network via
According to app logs it seems that app started, but translations were not loaded yet - but app tries to get translation and plugin fails with
Null check operator
.Looking into the source code of the plugin I have a feeling that it is related to the next lines of
SimpleTranslator
:So it cannot assign
Map<dynamic, dynamic>?
toMap<dynamic, dynamic>
. But I am not sure if it is a real root cause of the issue. Also, after translations are loaded from network - everything is working as expected ;)Thanks!