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

after Flutter Upgrade. showing this error #6

Open
hridoycse197 opened this issue Oct 10, 2023 · 2 comments
Open

after Flutter Upgrade. showing this error #6

hridoycse197 opened this issue Oct 10, 2023 · 2 comments

Comments

@hridoycse197
Copy link

Error: Cannot invoke a non-'const' constructor where a const expression is expected.
options.dart:313
Try using a constructor or factory that is 'const'

@xclud
Copy link
Owner

xclud commented Oct 10, 2023

The problem doesnt relate to the package. It's your code. You have upgraded the linter package and the new linter wants you to use the const constructor where possible.

Usually running dart fix . fixes them automatically. Or you can do it manually.

@xclud
Copy link
Owner

xclud commented Oct 10, 2023

dart fix --apply

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

2 participants