dooboolab-community / flutter_calendar_carousel

Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.
MIT License
826 stars 298 forks source link

intl 0.19.0 #367

Closed Matutez closed 1 month ago

Matutez commented 2 months ago

Hello. I change the version of the intl package from 0.18.0 to 0.19.0 to solve the compilation problem in the new stable version of flutter 3.22.0

hyochan commented 1 month ago

Related #363. Sorry I was forgetting about this plugin. I've just realized from buymeacoffee.

hyochan commented 1 month ago
Because every version of flutter_test from sdk depends on intl 0.18.1 and every version of flutter_calendar_carousel from path depends on intl ^0.19.0, flutter_test from sdk is incompatible with flutter_calendar_carousel from path.
So, because example depends on both flutter_calendar_carousel from path and flutter_test from sdk, version solving failed.

Currently I am seeing this. So I have to downgrade to 0.18.1

leiflinse-trivector commented 1 month ago

Unfortunately with intl 0.18.1 I get: Because flutter_calendar_carousel >=2.4.3 depends on intl ^0.18.1 and every version of flutter_localizations from sdk depends on intl 0.19.0, flutter_calendar_carousel >=2.4.3 is incompatible with flutter_localizations from sdk. So, because travelvu depends on both flutter_calendar_carousel ^2.4.3 and flutter_localizations from sdk, version solving failed.

But it can be worked around by each flutter project like this:

dependency_overrides:
  intl: ^0.19.0
Dieterbe commented 1 week ago

@hyochan when you got that error, which SDK version were you using? I think you were probably using an older version of the SDK, because the current one (3.22) seems to use 0.19, not 0.18.1 like in your error. so it should be safe to bring this package to use intl 0.19.0, as long as you use SDK 3.22 or newer