- LICENSE file (MIT)
- CHANGELOG.md with version 0.1.0
- pubspec.yaml with all metadata
- README.md with complete documentation
- analysis_options.yaml configured
- All tests passing (11/11)
- No analysis issues
- Example app working
First, test the package publication without actually publishing:
flutter pub publish --dry-runThis will validate:
- Package structure
- Required files (LICENSE, README, CHANGELOG, pubspec.yaml)
- File size limits
- Documentation completeness
Check for any warnings or issues in the dry-run output.
If the dry-run succeeds, publish for real:
flutter pub publishYou'll be prompted to:
- Confirm the package name and version
- Authenticate with your Google account
- Confirm the publication
After publishing:
-
Verify on pub.dev: Visit https://pub.dev/packages/flame_ldtk
-
Check package score: Wait ~10 minutes for pub.dev to analyze
-
Update README badges (optional):
[](https://pub.dev/packages/flame_ldtk) [](https://pub.dev/packages/flame_ldtk/score)
-
Tag the release on GitHub:
git tag v0.1.0 git push origin v0.1.0
"Package validation failed"
- Ensure all required files exist
- Check file names are correct (lowercase)
- Verify LICENSE format
"Version already exists"
- Cannot republish same version
- Increment version in pubspec.yaml
- Update CHANGELOG.md
"Package name already taken"
- Choose a different name
- Update pubspec.yaml and file references
"Upload failed"
- Check internet connection
- Verify Google account credentials
- Try again in a few minutes
When releasing new versions:
- Update version in
pubspec.yaml - Update
CHANGELOG.mdwith new features/fixes - Run tests:
flutter test - Run analysis:
flutter analyze - Update README if needed
- Follow steps 1-4 above
Follow Semantic Versioning:
- MAJOR (1.0.0): Breaking changes
- MINOR (0.2.0): New features, backwards compatible
- PATCH (0.1.1): Bug fixes, backwards compatible
Current version: 0.1.0 (initial release)