Flutter_i18n fixes
Closes #145 (closed)
-
Identified issue in flutter_i18n(null safety insimple_translator.dart) -
upstream library fixes see this issue in library repo.The maintainer can't reproduce our bug and therefore closed the ticket. -
Added missingTranslationHandlertoFlutterI18nDelegatecall -
Flattened FileTranslationLoadercall inmain.dart -
Made JsonDecodeStrategy()the default decoding strategy -
Refactored the translation code a bit -
Moved supportedLocalesanddecodeStrategiesLists tolocalization_constants.dartand added masking to the import statements in the files usinglocalization_constants.dartthus the suggestions by the IDE while coding becomes a bit less clobbered. (Might be favorable for future files containing constants etc.) -
Added an exception as well as some code for handling missing translation in the future. (just has to be incommented back in once there is a new compatible i18n version) -
bumpsee above. Reverted to v0.14.0 as it provides the best compatability so far. Hopefully a future version will somehow fix this.flutter_i18ndependency to version v0.16.x after library has been fixed
Edited by Christian Leonhard Epping