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

Flutter 2.0 - Dependency compatibility issue #157

Open
rsree1210 opened this issue Apr 26, 2021 · 2 comments
Open

Flutter 2.0 - Dependency compatibility issue #157

rsree1210 opened this issue Apr 26, 2021 · 2 comments

Comments

@rsree1210
Copy link

I have recently upgraded flutter from 1.22 to 2.0, and as part of it I have upgraded few of my project dependencies to support flutter 2.0.

One of them(my project dependencies) is flutter_form_builder and I have upgraded it to its latest version which is 5.0.0.

I am also using simple_auth_flutter dependency in my project with version 2.0.9. And now, I am getting the below exception when I run flutter pub get.

Because no versions of vin_decoder match >0.1.2 <0.1.3 and vin_decoder >=0.1.3 <0.2.0-nullsafety depends on http ^0.12.2, vin_decoder >0.1.2 <0.2.0-nullsafety requires http ^0.12.2.
| And because vin_decoder 0.1.2 depends on http ^0.12.1, vin_decoder >=0.1.2 <0.2.0-nullsafety requires http ^0.12.1.
| Because simple_auth_flutter >=2.0.9 depends on simple_auth ^2.0.9 which depends on http ^0.13.0, simple_auth_flutter >=2.0.9 requires http ^0.13.0.
| Thus, simple_auth_flutter >=2.0.9 is incompatible with vin_decoder >=0.1.2 <0.2.0-nullsafety.
| And because validators 2.0.1 depends on vin_decoder ^0.1.2, simple_auth_flutter >=2.0.9 is incompatible with validators 2.0.1.
| Because flutter_form_builder >=4.0.0-alpha.3 <6.0.0-nullsafety.0 depends on validators ^2.0.1 and no versions of validators match >2.0.1 <3.0.0, flutter_form_builder >=4.0.0-alpha.3 <6.0.0-nullsafety.0 requires validators 2.0.1.
| Thus, simple_auth_flutter >=2.0.9 is incompatible with flutter_form_builder >=4.0.0-alpha.3 <6.0.0-nullsafety.0.
| So, because MyApp depends on both flutter_form_builder ^5.0.0 and simple_auth_flutter ^2.0.9, version solving failed.

As I understand from the error, simple_auth_flutter and flutter_form_builder are inter dependent on each other and I believe there is some compatibility issue between the both due to different flutter version support they are providing.

Can I expect a compatible version of simple_auth_flutter with flutter 2.0 anytime soon? If that is not the case, is there any alternative solution to this problem or any work around that would be of help.

@Clancey
Copy link
Owner

Clancey commented Apr 26, 2021

Feel free to update the needed dependencies and send a pull request!

@ginuxone
Copy link

#158 I think There's already this pull request that might be the fix for this issue

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