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

[General]: Incompatible with Flutter 3.22 due to dependency on intl 0.18.1 #90

Closed
7 tasks done
JakobLichterfeld opened this issue May 14, 2024 · 9 comments · Fixed by #94
Closed
7 tasks done
Labels
bug Something isn't working

Comments

@JakobLichterfeld
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.0.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Minimal code example

Code sample
dependencies:
    form_builder_validators: ^9.1.0 

Current Behavior

Version solving failed

flutter pub get
Resolving dependencies... 
Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because every version of flutter_localizations from sdk depends on intl 0.19.0 and <package> depends on intl ^0.18.1, flutter_localizations from sdk is forbidden.
So, because <package> depends on flutter_localizations from sdk, version solving failed.

Expected Behavior

Version solving possible

Steps To Reproduce

  1. Update flutter to 3.22
  2. Add form_builder_validators: ^9.1.0 to pubspec.yml
  3. run flutter pub get

Aditional information

No response

@JakobLichterfeld JakobLichterfeld added the bug Something isn't working label May 14, 2024
@tylerbarnesTrexis
Copy link

Experiencing the same issue.

@JakobLichterfeld
Copy link
Author

JakobLichterfeld commented May 14, 2024

Workaround in pubspec.yml:

dependency_overrides:
  intl: 0.19.0   

@specOper99
Copy link

actually this workaround is not the best way to solve the issue cause it might has effects on some other packages which also might need to issue an update for their pubspec.yaml
Also, I am happy to contribute if necessary :).

@JakobLichterfeld
Copy link
Author

That's why it's called a workaround. Forking and updating the package pubspec is another one.

@jamontesg
Copy link

Experiencing the same issue.

@thicorrea1
Copy link

same issue here

@enchance
Copy link

What can we do about this?

@martijn00
Copy link
Contributor

#88 will fix this

@deandreamatias
Copy link
Contributor

Version 10.0.0 with fix, deployed https://pub.dev/packages/form_builder_validators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
8 participants