channdara / flutter_localization

BSD 3-Clause "New" or "Revised" License
10 stars 17 forks source link

flutter_localization ^0.2.0 requires intl 0.18.1 #16

Closed jackfioru92 closed 1 month ago

jackfioru92 commented 4 months ago

I hope this message finds you well. I'm reaching out regarding an issue I encountered while working with your package, specifically related to dependency versions.

When attempting to use my app, I encountered a version conflict with flutter_localization. Here's the error message I received:

Because no versions of flutter_localization match >0.2.0 <0.3.0 and flutter_localization 0.2.0 depends on flutter_localizations from sdk, flutter_localization ^0.2.0 requires flutter_localizations from sdk. And because every version of flutter_localizations from sdk depends on intl 0.18.1, flutter_localization ^0.2.0 requires intl 0.18.1. So, because my app depends on both intl ^0.19.0 and flutter_localization ^0.2.0, version solving failed.

Will it be compatible with intl ^0.19.0 soon?

By the way, I'd also like to take this opportunity to compliment you on this package! Great work!

channdara commented 4 months ago

Hello @jackfioru92 The intl version depends on the Flutter SDK flutter_localizations. I'm not sure when the Flutter team will upgrade the intl version either. Currently please use the pinned version 0.18.1 of intl as a workaround.

renehw commented 3 months ago

Some update?

channdara commented 3 months ago

@renehw Look like Flutter SDK still not yet update the intl, please keep using version 0.18.1 for now.

Mistic92 commented 3 months ago

I see I can't use it too as I'm getting below error


Because every version of flutter_localizations from sdk depends on intl 0.18.1 and awesome_notifications >=0.8.3 depends on intl ^0.19.0,
  flutter_localizations from sdk is incompatible with awesome_notifications >=0.8.3.
channdara commented 3 months ago

@Mistic92 Yes, it's the same thing for everyone. It looks like Flutter SDK flutter_localizations still pinned the intl version to 0.18.1

Boukri commented 2 months ago

i have the same issue, any updates ?

channdara commented 2 months ago

@Boukri Still no update from Flutter SDK yet. Error still existed when using intl 0.19.0 but the 0.18.1 still working fine

yeeahh commented 2 months ago

The intl dependency needs to be updated urgently as the updates contains the (by apple) required ios privacy manifest updates: https://developer.apple.com/support/third-party-SDK-requirements/

channdara commented 2 months ago

@yeeahh If this is the case, please help report this to Flutter SDK flutter_localizations together to let them know.

romatallinn commented 2 months ago

Looks like intl: 0.19.0 is coming in flutter v3.21.0, so people pls stop annoying @channdara lol.

romatallinn commented 2 months ago

And FYI, something tells me that most of ppl in this thread are not even using this repo's package.

If you have this in pubspec file:

flutter_localizations:
  sdk: flutter

Then you are using flutter/packages/flutter_localizations, meaning you are in a wrong place. So you are probably more interested in THIS ISSUE.

Not totally your fault tho, they do share almost the exact name. 😅

P.S. If for you it is an absolutely blocking issue, you can use flutter master channel for now, which already includes the changes. The instructions are here.

channdara commented 2 months ago

Thank @romatallinn for this explanation 😁 Man I should check before picking the package name 😂

channdara commented 1 month ago

Look like Flutter SDK flutter_localizations has been updated their intl version in the latest Flutter version. I will close this case for now. Thank you.