flutter_sheet_localization
flutter_sheet_localization copied to clipboard
Please add support nullsafety and update intl to version 0.17.0-nullsafety.2
I have updated the flutter for nullsafety version. And see the next error, when trying to update YAML
Because flutter_sheet_localization_generator >=2.0.0 depends on intl ^0.16.1 and my_app depends on intl ^0.17.0-nullsafety.2, flutter_sheet_localization_generator >=2.0.0 is forbidden. So, because my_app depends on flutter_sheet_localization_generator ^2.1.2, version solving failed. pub get failed (1; So, because my_app depends on flutter_sheet_localization_generator ^2.1.2, version solving failed.)
For now this can be fixed temporarily by adding this to your pubspec.yaml: dependency_overrides: analyzer: 0.40.1 intl: 0.17.0-nullsafety.2
and in the dev_dependencies build_runner: ^1.11.0
I agree it would be great if that could be fixed completely at some point. I guess on Wednesday there is going to be an announcement of a big version change in flutter, that could be a good occasion.
I have asked the author of the plugin, he said he needs code_builder and dart_style to get updated to null safety first. So if you want this to happen, you can also follow/comment/like the following issues: https://github.com/dart-lang/code_builder/issues/303 (null safety code_builder) https://github.com/dart-lang/dart_style/issues/978 (null safety in dart_style)
I've tried to migrate this to null safety, and opened a PR. But if anyone wanted to test it and let me know, that would be helpful. https://github.com/Dokotela/flutter_sheet_localization