flutter_sheet_localization icon indicating copy to clipboard operation
flutter_sheet_localization copied to clipboard

how I resolve error?

Open quoc-dev opened this issue 4 years ago • 5 comments

Because flutter_sheet_localization_generator >=1.2.0 depends on analyzer ^0.39.0 and kiwi_generator 2.1.1 depends on analyzer ^0.40.4, flutter_sheet_localization_generator >=1.2.0 is incompatible with kiwi_generator 2.1.1. And because no versions of kiwi_generator match >2.1.1 <3.0.0, flutter_sheet_localization_generator >=1.2.0 is incompatible with kiwi_generator ^2.1.1. So, because home_practices depends on both kiwi_generator ^2.1.1 and flutter_sheet_localization_generator ^2.1.2, version solving failed.

Screen Shot 2021-01-12 at 10 00 11 PM

I see pr https://github.com/aloisdeniel/flutter_sheet_localization/pull/25 it's can resolve? thanks you

quoc-dev avatar Jan 12 '21 15:01 quoc-dev

Any plans to accept the PR mentioned above? I have a package: https://github.com/delay/flutter_starter that relies on your plugin and would like to update it to work again. https://github.com/delay/flutter_starter/issues/12. Thanks for making this great plugin I have found it very useful for my own project!

delay avatar Feb 11 '21 23:02 delay

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

Thanks for the info! I was able to fix the issue in my own sample project. I am also looking forward to the Wednesday announcement!

delay avatar Mar 01 '21 23:03 delay

Sorry for the delay, I was on a big refactoring pass.

A new version is available. Please tell me if it works better on your side!

Note that there are a few changes to do to your delegate class implementation (see the README for more details).

aloisdeniel avatar Apr 15 '21 08:04 aloisdeniel

Thanks I ended up making a generator similar to yours but a lot more stripped down and not as integrated for my own sample project, but it outputs GetX translation code and I use GetX throughout my app. I really liked how you handled translations and was very much inspired by what you did.

delay avatar Apr 15 '21 14:04 delay