purchases_ui_flutter
purchases_ui_flutter allows to use RevenueCat's paywalls and customer center in your Flutter application. Check our main SDK for more information and our paywalls documentation
Installation
To use this plugin, add purchases_flutter
and purchases_ui_flutter
as a dependency in your pubspec.yaml file.
Paywalls
Present your paywall like:
await RevenueCatUI.presentPaywall();
or conditionally based on entitlements:
await RevenueCatUI.presentPaywallIfNeeded("requiredEntitlementId");
Customer Center
Present as a modal (callbacks optional):
await RevenueCatUI.presentCustomerCenter(
onRestoreCompleted: (customerInfo) {
// handle restore success
},
onRefundRequestCompleted: (productId, status) {
// handle refund completion
},
);
// Or, if you don't need callbacks:
await RevenueCatUI.presentCustomerCenter();
Or display inline using the CustomerCenterView
widget. See the CustomerCenterView implementation for full API details and callback options.
Requirements
purchases_ui_flutter requires XCode 14.0+ and minimum targets iOS 11.0+ and Android 24+. Paywalls will only work on iOS 15.0+ and Android 24+.
SDK Reference
Our full SDK reference can be found here.
Getting Started
For more detailed information, you can view our complete documentation at docs.revenuecat.com.