Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
romathebest opened this issue Feb 23, 2021 · 3 comments

Comments

@romathebest
Copy link

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 romathebest changed the title Please add support nullsafety and update intl to version0.17.0-nullsafety.2 Please add support nullsafety and update intl to version 0.17.0-nullsafety.2 Feb 23, 2021
@marcschw
Copy link

marcschw commented Mar 1, 2021

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
Copy link

marcschw commented Mar 5, 2021

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:
dart-lang/tools#1136 (null safety code_builder)
dart-lang/dart_style#978 (null safety in dart_style)

@Dokotela
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants