Can we change the close button color in Flutter
await RevenueCatUI.presentPaywall(displayCloseButton: true);
Can we change the close button color in Flutter
await RevenueCatUI.presentPaywall(displayCloseButton: true);
Best answer by guilherme
Hey displayCloseButton parameter is a legacy Paywalls field. If you're using our new Paywalls Editor, that parameter won’t have an impact on the Paywall as you’ll add close buttons directly as components.
So you can just call:
await RevenueCatUI.presentPaywall();
and then configure the close button (including its color) in the dashboard when designing your paywall template, for light or dark mode even.
If you're still on the legacy Paywalls, the close button color follows your existing theme. But I'd recommend moving to the new Paywall Editor approach since that's where all the new features are going and where you’ll have more control over components like those ones.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.