Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Flutter 3.10.0 when using flutter_localizations package from SDK #87

Open
onlyamessenger opened this issue May 16, 2023 · 1 comment

Comments

@onlyamessenger
Copy link

onlyamessenger commented May 16, 2023

The flutter_localizations package from the Flutter SDK itself, uses intl version 0.18.0. Flogs depends on intl version ^0.17.0. This causes pub dependency conflicts.

Example pubspec.yaml:

environment:
  sdk: '>=3.0.0 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  flogs: ^2.0.1

Output of flutter pub get:

Because your_app depends on flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required. So, because your_app depends on intl ^0.17.0, version solving failed.

@onlyamessenger
Copy link
Author

Can currently get around this using a dependency_overrides entry:

dependency_overrides:
  intl: ^0.18.0

luckysori added a commit to get10101/10101 that referenced this issue Apr 5, 2024
Since we no longer use `Flogs`, we don't need this dependency
override[^1]. It was creating problems in CI[^2] (and locally too I
suppose).

[^1]: zubairehman/Flogs#87.
[^2]: https://github.com/get10101/10101/actions/runs/8565195140/job/23472971318?pr=2352#step:9:357.
luckysori added a commit to get10101/10101 that referenced this issue Apr 5, 2024
Since we no longer use `Flogs`, we don't need this dependency
override[^1]. It was creating problems in CI[^2] (and locally too I
suppose).

[^1]: zubairehman/Flogs#87.
[^2]: https://github.com/get10101/10101/actions/runs/8565195140/job/23472971318?pr=2352#step:9:357.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant