Overview
The new_version package helps Flutter apps determine if the current version is up to date by checking against a specified version on a remote source, such as a JSON file or API endpoint. It supports multiple platforms including Android, iOS, macOS, Windows, and Linux. The package enables developers to prompt users to update their app when a newer version is available, improving user experience and ensuring access to the latest features and security fixes. It's lightweight and easy to integrate with minimal configuration.
Use cases
- Prompt users to update the app
- Check for updates on app launch
- Verify version compatibility
- Notify users of new releases
- Integrate with CI/CD workflows
Key features
- Cross-platform support
- Simple integration
- Remote version checking
- Customizable update prompts
- Supports JSON and HTTP endpoints
Suitable for
- Apps requiring version control
- Developers managing app updates
- Projects with frequent releases
- User-facing mobile applications
- Teams using automated deployment
Considerations
- Requires internet access
- Relies on external version source
- May need caching strategy
- Not suitable for offline-first apps
- Version comparison logic must be defined
