Closed daninfpj closed 2 years ago
Can you provide a minimal reproduction example?
Error is when key
is ""
in _decodeFromMap
. I paste stacktrace.
@daninfpj could you test the fix?
flutter_i18n:
git: https://github.com/ilteoood/flutter_i18n
It helped me. Maybe after @daninfpj confirmation, @ilteoood could release a new version on pub and close the issue?
Hi guys, I'm in honeymoon right now. The suggested workaround could be used until I come back, at the end of this week.
A fix should have been published with version 0.32.3
I’m sometimes getting this error when calling
translate
.The problem lies within this function:
Specifically, when reaching this line:
decodedMap
isnull
, which makes the function returnnull
.Then, on this line the null check fails:
Why would
decodedMap
be null at that point? In my app, on a following repaint it is no longer null.