purchase_service 1.0.0
purchase_service: ^1.0.0 copied to clipboard
A comprehensive Flutter package for handling RevenueCat in-app purchases and subscriptions with real-time status tracking and paywall integration.
1.0.0 #
Initial Release #
-
β¨ Core Features
- Complete RevenueCat SDK integration
- Singleton service pattern for easy access
- Automatic SDK initialization with configuration options
-
π³ Purchase Management
- Purchase packages with error handling
- Restore previous purchases
- Get available offerings from RevenueCat dashboard
-
π¨ Paywall Integration
- Built-in RevenueCat UI paywall support
- Customizable paywall presentation with close button option
- Automatic result handling (purchased, restored, cancelled, error)
-
π Real-time Updates
- Live customer info updates via streams
- Automatic pro status tracking
- Smart entitlement detection
-
π€ User Management
- Login/logout functionality with user ID association
- Seamless user switching support
-
π Status Tracking
isPro
getter for instant pro status checkingproStatusStream
for real-time pro status changes- Individual entitlement checking with
hasActiveEntitlement()
- Complete active entitlements list
-
π Developer Experience
- Comprehensive error handling and logging
- Stream-based reactive programming support
- Proper resource cleanup with
dispose()
- Extensive documentation and examples
-
π¦ Exports
PaywallResult
enum from RevenueCat UIEntitlementInfo
class from RevenueCat core- Clean API surface with essential types
Dependencies #
purchases_flutter: ^8.9.0
- RevenueCat core SDKpurchases_ui_flutter: ^8.9.0
- RevenueCat UI components- Requires Flutter SDK
>=3.0.0
- Requires Dart SDK
^3.7.0