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

Error compiling the example #185

Closed
ramsestom opened this issue Dec 1, 2019 · 6 comments
Closed

Error compiling the example #185

ramsestom opened this issue Dec 1, 2019 · 6 comments

Comments

@ramsestom
Copy link

Have this error when trying to compile the example:

Compiler message:
../../SDK/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.5.3/lib/src/fields/form_builder_chips_input.dart:108:13: Error: No named parameter with the name 'onChipTapped'.
onChipTapped: widget.onChipTapped,
^^^^^^^^^^^^
../../SDK/.pub-cache/hosted/pub.dartlang.org/flutter_chips_input-1.6.0/lib/src/chips_input.dart:12:3: Context: Found this candidate, but the arguments don't match.
ChipsInput({
^

@ramsestom
Copy link
Author

ramsestom commented Dec 1, 2019

This bug seems fixed in flutter_form_builder >=3.6.1 but the problem is that flutter_localizations is incompatible with flutter_form_builder >=3.5.4:

Because every version of flutter_localizations from sdk depends on intl 0.15.8 and flutter_form_builder >=3.5.4 depends on intl ^0.16.0, flutter_localizations from sdk is incompatible with flutter_form_builder >=3.5.4

So this is a real problem because it means that flutter_form_builder currently can't be used in any localized app using the standard flutter_localizations package. Do flutter_form_builder really need intl ^0.16.0? Can't this be changed for a smaller intl minimal version?
In the mean time I opened an issue on flutter_localizations (flutter/flutter#45863) because they shouldn't enforce a specific version of their dependencies.

@lx-an
Copy link

lx-an commented Dec 5, 2019

Hi @danvick,
Could you please fix this issue. I can't (I believe others like @ramsestom can't either) use this library in any way. I even tried with flutter_form_builder v3.3.x.

If intl v0.16.0 isn't that mandatory, could you downgrade it for a while? Or could you backport the fix with flutter_chips_input to flutter_form_builder v3.5.x?

Thank you,

@danvick
Copy link
Collaborator

danvick commented Dec 5, 2019

Hi @lq-manh,
I'll consider doing exactly that. In the meantime, you could solve that with a dependency override in pubspec. Like this:

dependencies:
  ...
  flutter_form_builder: 3.6.1

dependency_overrides:
  intl: 0.15.8

@danvick
Copy link
Collaborator

danvick commented Dec 5, 2019

Have this error when trying to compile the example:

Compiler message:
../../SDK/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.5.3/lib/src/fields/form_builder_chips_input.dart:108:13: Error: No named parameter with the name 'onChipTapped'.
onChipTapped: widget.onChipTapped,
^^^^^^^^^^^^
../../SDK/.pub-cache/hosted/pub.dartlang.org/flutter_chips_input-1.6.0/lib/src/chips_input.dart:12:3: Context: Found this candidate, but the arguments don't match.
ChipsInput({
^

Kindly use the latest version of the package

@danvick
Copy link
Collaborator

danvick commented Dec 5, 2019

Fixed in v3.7.0. Feel free to reopen in case of any more feedback.

@malikdoksoz
Copy link

Can you update intl 16.0

Because flutter_form_builder 3.7.2 depends on intl ^0.15.8 and no versions of flutter_form_builder match >3.7.2 <4.0.0, flutter_form_builder ^3.7.2 requires intl ^0.15.8.

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

4 participants