jama5262 / jiffy

Jiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates
https://pub.dev/packages/jiffy
MIT License
588 stars 126 forks source link

Because jiffy >=6.2.2 depends on intl ^0.19.0 and every version of flutter_localizations from sdk depends on intl 0.18.1 #265

Closed laterdayi closed 7 months ago

laterdayi commented 8 months ago

Because jiffy >=6.2.2 depends on intl ^0.19.0 and every version of flutter_localizations from sdk depends on intl 0.18.1

jama5262 commented 8 months ago

Sorry but i dont understand your issue, could you please elaborate

laterdayi commented 8 months ago

When using jiffy, he suggested that jiffy intl would conflict with flutter_localizations intl

jama5262 commented 8 months ago

If i understand you right, you are using flutter_localizations that depends on 0.18.1,

You can try to use dependency_overrides in your pubspec.yaml file, like so

dependency_overrides:
  intl: ^0.18.1

Can you try the above and tell me if it works

jama5262 commented 7 months ago

If the above did not work for you, please feel free to reopen this issue

laterdayi commented 7 months ago

@jama5262 intl: ^0.18.1

Resolving dependencies... Because depends on jiffy ^6.3.0 which depends on intl ^0.19.0, intl ^0.19.0 is required. So, because zhuoshengwei_mobile depends on intl ^0.18.1, version solving failed.

You can try the following suggestion to make the pubspec resolve:

laterdayi commented 7 months ago

The problem still exists