Flutter Pubspec.yaml Warning: Publishable packages can't have git dependencies Flutter Pubspec.yaml Warning: Publishable packages can't have git dependencies git git

Flutter Pubspec.yaml Warning: Publishable packages can't have git dependencies


My guess is that it helps you preventing publishing dummy/old package by doing extra check on package that are set to be published. You should add (at the root of the document, for example after the version field):

publish_to: none

to your pubspec.yaml


Adding your SSH in git account will solve your problem. visit Here to know how to generate SSH key