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

Because every version of form_builder_validators depends on flutter_localizations from sdk which depends on intl 0.20.1 #925

Open
PabloRG-git opened this issue Dec 11, 2024 · 6 comments
Labels
package:intl type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@PabloRG-git
Copy link

Describe the bug
Because every version of form_builder_validators depends on flutter_localizations from sdk which depends on intl 0.20.1, every version of form_builder_validators requires intl 0.20.1.
So, because app_siga depends on both intl ^0.19.0 and form_builder_validators ^11.0.0, version solving failed.

To Reproduce
import 'package:flutter_form_builder/flutter_form_builder.dart';
import 'package:form_builder_validators/form_builder_validators.dart';

Target of URI doesn't exist: 'package:flutter_form_builder/flutter_form_builder.dart'.
Try creating the file referenced by the URI, or try using a URI for a file that does exist.

**System info**
Because every version of form_builder_validators depends on flutter_localizations from sdk which depends on intl 0.20.1, every version of form_builder_validators requires intl 0.20.1.
So, because app_siga depends on both intl ^0.19.0 and form_builder_validators ^11.0.0, version solving failed.
exit code 1
@PabloRG-git PabloRG-git added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Dec 11, 2024
@mosuem
Copy link
Member

mosuem commented Dec 12, 2024

Thanks for filing - this is related to Flutter pinning and #914. So I would recommend the same course of action as there, adding dependency overrides to your pubspec:

dependency_overrides:
  intl: 0.20.1

@mosuem mosuem changed the title IntBecause every version of form_builder_validators depends on flutter_localizations from sdk which depends on intl 0.20.1 Because every version of form_builder_validators depends on flutter_localizations from sdk which depends on intl 0.20.1 Dec 12, 2024
@PabloRG-git
Copy link
Author

PabloRG-git commented Dec 12, 2024 via email

@mosuem
Copy link
Member

mosuem commented Dec 13, 2024

Could you post your pubspec.yaml contents, if possible? A dependency_override should override version 0.19.0.

@PabloRG-git
Copy link
Author

Could you post your pubspec.yaml contents, if possible? A dependency_override should override version 0.19.0.


name: app_siga
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ^3.5.4

dependencies:
sizer: ^3.0.3
intl: ^0.19.0
flutter:
sdk: flutter

cupertino_icons: ^1.0.8
flutter_form_builder: ^9.5.0
firebase_core: ^3.8.1
firebase_auth: ^5.3.4
#form_builder_validators: ^11.0.0 //I have commented out this code, which is the form_builder_validators, to continue with my development.

dev_dependencies:
change_app_package_name: ^1.1.0
flutter_test:
sdk: flutter

flutter_lints: ^5.0.0

uses-material-design: true
assets:
- lib/images/logo1.jpg


I performed a Purge.
I reloaded the packages.
But there is no way to install the form_builder_validator

Captura de pantalla 2024-12-13 101110

@mosuem
Copy link
Member

mosuem commented Dec 16, 2024

Could you try adding the dependency override?

...
dependencies:
  sizer: ^3.0.3
  intl: ^0.19.0
  flutter:
    sdk: flutter

dependency_overrides:
  intl: 0.20.1
...

@PabloRG-git
Copy link
Author

PabloRG-git commented Dec 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:intl type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants