flutter_sheet_localization icon indicating copy to clipboard operation
flutter_sheet_localization copied to clipboard

Please add support nullsafety and update intl to version 0.17.0-nullsafety.2

Open romathebest opened this issue 3 years ago • 3 comments

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.)

romathebest avatar Feb 23 '21 17:02 romathebest

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.

marcschw avatar Mar 01 '21 17:03 marcschw

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)

marcschw avatar Mar 05 '21 13:03 marcschw

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

Dokotela avatar Mar 17 '21 22:03 Dokotela