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

flutter pub add version - doesn't add anything to pubspec.yaml #17

Open
abulka opened this issue Nov 3, 2022 · 0 comments
Open

flutter pub add version - doesn't add anything to pubspec.yaml #17

abulka opened this issue Nov 3, 2022 · 0 comments

Comments

@abulka
Copy link

abulka commented Nov 3, 2022

Running flutter pub add version doesn't add anything to pubspec.yaml. Like adding any other package, an entry should automatically be made in pubspec.yaml.

Sure, the actual download of the version package completes (you can confirm this with flutter pub deps and seeing

|-- version 3.0.2

listed but it turns out that

  version: ^3.0.0

needs to be added manually to pubspec.yaml in order for imports to not have red lines under them in vscode etc.

Perhaps the name of the version package conflicts with the version keyword of the pubspec.yaml?

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

1 participant