To publish: First flutter pub publish --dry-run This will show you the errors if any. Second flutter pub publish This will publish the package.