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 dart 2.17 #474

Closed
MegatronKing opened this issue Oct 4, 2022 · 2 comments
Closed

Support dart 2.17 #474

MegatronKing opened this issue Oct 4, 2022 · 2 comments
Labels
enhancement New feature or request more info required Needs more info to become actionable. Auto-closed if no response.

Comments

@MegatronKing
Copy link

Flutter has upgraded dart to 2.17, throws some error in generating if the project uses 'super-parameters' language feature.

This builder requires Dart inputs without syntax errors.
However, package:reqable/framework/widgets.dart (or an existing part) contains the following errors.
resize.dart:13:5: This requires the 'super-parameters' language feature to be enabled.
reorderable.dart:21:5: This requires the 'super-parameters' language feature to be enabled.
reorderable.dart:422:5: This requires the 'super-parameters' language feature to be enabled.

Try fixing the errors and re-running the build.
@MegatronKing MegatronKing added the enhancement New feature or request label Oct 4, 2022
@greenrobot-team
Copy link
Member

Thanks for reporting. However, does this really require an update to the objectbox package? Is it not enough to increase the minimum sdk version of your package/app? https://stackoverflow.com/questions/72197622/this-requires-the-super-parameters-language-feature-to-be-enabled

@greenrobot-team greenrobot-team added the more info required Needs more info to become actionable. Auto-closed if no response. label Oct 4, 2022
@MegatronKing
Copy link
Author

@greenrobot-team Thanks for reply. Upgrade min sdk version does not work, I found a workaround from dart-lang/language#1855
Using the following cli to generate objectbox.g.dart:

flutter pub run build_runner build serve --enable-experiment=super-parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request more info required Needs more info to become actionable. Auto-closed if no response.
Projects
None yet
Development

No branches or pull requests

2 participants