flutter_money_formatter icon indicating copy to clipboard operation
flutter_money_formatter copied to clipboard

Dependency conflict with intl v0.16.0

Open mattf80 opened this issue 5 years ago • 5 comments

Describe the bug Upon installing flutter money formatter, I'm receiving a dependency conflict with the intl package. Here is the error message:

Because flutter_money_formatter >=0.8.2 depends on intl ^0.15.8 and <project_name> depends on intl ^0.16.0, flutter_money_formatter >=0.8.2 is forbidden.

I have tried downgrading my version of intl, but then I get other dependency errors from packages in my project which depend on it.

To Reproduce Steps to reproduce the behavior:

  1. Install intl v0.16.0
  2. Attempt to install flutter_money_formatter v0.8.3
  3. See error described above

Expected behavior Ideally the package would install with intl v0.16.0 already installed.

Hopefully it's not me doing something wrong, if not would it be possible to update your package to work with the latest version of intl? Thank you.

mattf80 avatar Nov 05 '19 11:11 mattf80

I also confirm this, had to keep intl on 0.15.8

willtsan avatar Nov 05 '19 12:11 willtsan

I also having the same problem.

[project_name] flutter packages get Running "flutter pub get" in project_name...
Because flutter_money_formatter >=0.8.2 depends on intl ^0.15.8 and every version of flutter_localizations from sdk depends on intl 0.16.0, flutter_money_formatter >=0.8.2 is incompatible with flutter_localizations from sdk.

So, because project_name depends on both flutter_localizations any from sdk and flutter_money_formatter ^0.8.3, version solving failed. pub get failed (1; So, because project_name depends on both flutter_localizations any from sdk and flutter_money_formatter ^0.8.3, version solving failed.) exit code 1

marcosnataqs avatar Dec 10 '19 18:12 marcosnataqs

Same problem here.

guilhermefilippo avatar Dec 13 '19 03:12 guilhermefilippo

I also having the same problem.

[project_name] flutter packages get Running "flutter pub get" in project_name... Because flutter_money_formatter >=0.8.2 depends on intl ^0.15.8 and every version of flutter_localizations from sdk depends on intl 0.16.0, flutter_money_formatter >=0.8.2 is incompatible with flutter_localizations from sdk.

So, because project_name depends on both flutter_localizations any from sdk and flutter_money_formatter ^0.8.3, version solving failed. pub get failed (1; So, because project_name depends on both flutter_localizations any from sdk and flutter_money_formatter ^0.8.3, version solving failed.) exit code 1

Even now I face the same error, any resolution for this issue?

rohitattaluri avatar Aug 04 '20 06:08 rohitattaluri

I fixed with this dependency_overrides

dependency_overrides: intl: ^0.16.0

ArjunR467 avatar Sep 05 '20 12:09 ArjunR467