You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Running
flutter pub add version
doesn't add anything topubspec.yaml
. Like adding any other package, an entry should automatically be made inpubspec.yaml
.Sure, the actual download of the
version
package completes (you can confirm this withflutter pub deps
and seeinglisted but it turns out that
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 theversion
keyword of thepubspec.yaml
?The text was updated successfully, but these errors were encountered: