Reputation: 76922
When trying to publish a flutter plugin by running flutter pub publish --dry-run
I'm getting the following.
A private package cannot be published.
You can enable this by changing the "publish_to" field in your pubspec.
Upvotes: 2
Views: 706
Reputation: 76922
The problem turns out that I was running this command inside the example directory.
Just needed to change to the root directory of the plugin and it works fine.
Upvotes: 9