form_builder_validators icon indicating copy to clipboard operation
form_builder_validators copied to clipboard

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

Open JakobLichterfeld opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Package/Plugin version

9.0.1

Platforms

  • [X] Android
  • [X] iOS
  • [X] Linux
  • [X] MacOS
  • [X] Web
  • [X] 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 avatar May 14 '24 06:05 JakobLichterfeld

Experiencing the same issue.

tylerbarnesTrexis avatar May 14 '24 06:05 tylerbarnesTrexis

Workaround in pubspec.yml:

dependency_overrides:
  intl: 0.19.0   

JakobLichterfeld avatar May 14 '24 07:05 JakobLichterfeld

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

specOper99 avatar May 14 '24 10:05 specOper99

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

JakobLichterfeld avatar May 14 '24 10:05 JakobLichterfeld

Experiencing the same issue.

jamontesg avatar May 15 '24 00:05 jamontesg

same issue here

thicorrea1 avatar May 16 '24 12:05 thicorrea1

What can we do about this?

enchance avatar May 18 '24 18:05 enchance

#88 will fix this

martijn00 avatar May 19 '24 23:05 martijn00

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

deandreamatias avatar May 22 '24 15:05 deandreamatias