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

broken dependency due to flutter upgrade to latest release, localizations is pinned to intl 1.9.0 and and this lib to 1.8.0 #366

Open
rubinbasha opened this issue May 16, 2024 · 4 comments

Comments

@rubinbasha
Copy link

Version of flutter_calendar_carousel

2.4.2

Expected behavior

when executing flutter pub get the dependencies get resolved

Actual behavior

dependency resolution is blocked

Resolving dependencies...
Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because no versions of flutter_calendar_carousel match >2.4.2 <3.0.0 and flutter_calendar_carousel 2.4.2 depends on intl ^0.18.0, flutter_calendar_carousel ^2.4.2 requires intl ^0.18.0.
And because every version of flutter_localizations from sdk depends on intl 0.19.0, flutter_calendar_carousel ^2.4.2 is incompatible with flutter_localizations from sdk.
So, because your_custom_app depends on both flutter_localizations from sdk and flutter_calendar_carousel ^2.4.2, version solving failed.

flutter doctor result (run flutter doctor in terminal)

[✓] Flutter (Channel stable, 3.22.0, on macOS 14.3 23D56 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Community Edition (version 2023.3.6)
[✓] VS Code (version 1.89.0)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Steps to reproduce the behavior

run flutter upgrade on stable channel
then run flutter pub get

@jagalsree
Copy link

I'm also facing this issue.

@rubinbasha
Copy link
Author

just saw there is a PR actually that will solve the issue, lets hope it gets merged soon

@ReeceJames97
Copy link

I am facing this issue "Because flutter_calendar_carousel >=2.4.2 depends on intl ^0.18.0 and flutter_calendar_carousel >=2.0.0 <2.4.2 depends on intl ^0.17.0, flutter_calendar_carousel >=2.0.0 requires intl ^0.17.0 or ^0.18.0.
So, because atom depends on both flutter_calendar_carousel ^2.3.0 and intl ^0.19.0, version solving failed.",

and my intl version is 0.19.0 and flutter_calendar_carousel version is 2.4.2

@jagalsree
Copy link

Use

flutter_calendar_carousel: 
    git:
      url: https://github.com/casualcoder404/flutter_calendar_carousel.git

Works fine for me now.

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