fadhly-permata / flutter_money_formatter

"FlutterMoneyFormatter" is a Flutter extension to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.
https://pub.dartlang.org/packages/flutter_money_formatter
Other
85 stars 106 forks source link

Dependency conflict with intl v0.16.0 #17

Open mattf80 opened 4 years ago

mattf80 commented 4 years ago

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 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.

willtsan commented 4 years ago

I also confirm this, had to keep intl on 0.15.8

marcosnataqs commented 4 years ago

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

guilhermefilippo commented 4 years ago

Same problem here.

rohitattaluri commented 4 years ago

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?

ArjunR467 commented 4 years ago

I fixed with this dependency_overrides

dependency_overrides: intl: ^0.16.0