version_sentry 1.0.5
version_sentry: ^1.0.5 copied to clipboard
A Flutter package to help apps stay up-to-date by fetching the latest version from the Play Store (Android) or App Store (iOS)
Version Sentry #
A Flutter package to help apps stay up-to-date by fetching the latest version from the Play Store (Android) or App Store (iOS). Usage #
To use Version Sentry, simply call the versionSentryInfo function and pass the country code:
import 'package:version_sentry/version_sentry.dart';
void main() async {
VersionSentryInfo? versionSentryInfo = await VersionSentry.versionSentryInfo(countryCode: 'in');
print(versionSentryInfo?.currentVersion); // 1.0.0
print(versionSentryInfo?.storeVersion); // 1.4.20
print(versionSentryInfo?.needsUpdate); // true
print(versionSentryInfo?.isMajorUpdate); // false
print(versionSentryInfo?.isMinorUpdate); // true
print(versionSentryInfo?.isPatchUpdate); // true
print(versionSentryInfo?.releaseNotes); // Improve Design
print(versionSentryInfo?.packageName); // com.example.example
print(versionSentryInfo?.platform); // iOS
}
Features #
- Fetches the latest version from the Play Store (Android) or App Store (iOS)
- Provides information about the current version, store version, and update requirements
- Supports country-specific version fetching using country codes
[Simulator Screenshot - iPhone 16 Pro Max - 2025-02-09 at 19.08.29.png]