version_sentry 1.0.3
version_sentry: ^1.0.3 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
Getting Started #
Add version_sentry to your pubspec.yaml file: dependencies: flutter: sdk: flutter version_sentry: ^1.0.0
Run flutter pub get to install the package. Import the package in your Dart file:
import 'package:version_sentry/version_sentry.dart';