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
rubinbasha opened this issue · 5 comments
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
I'm also facing this issue.
just saw there is a PR actually that will solve the issue, lets hope it gets merged soon
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
Use
flutter_calendar_carousel:
git:
url: https://github.com/casualcoder404/flutter_calendar_carousel.git
Works fine for me now.
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.