Skip to main content
Question

Flutter - presentPaywallIfNeeded

  • Dec 20, 2024 2:30 AM UTC
  • 1 reply
  • 387 views

Forum|alt.badge.img+5

I'm using presentPaywallIfNeeded to call a paywall in Flutter. But I want it to be locked, user cannot swipe to close. How do I do this?

This post has been closed for comments

1 reply

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Dec 20, 2024 9:20 PM UTC

Hey ​@maikelgalvao!

If you need more customization on how the paywall is presented, I would recommend manually displaying the PaywallView in a context that can’t be dismissed, and making sure there’s no dismiss button: https://www.revenuecat.com/docs/tools/paywalls/displaying-paywalls#flutter 

Then, in the onDismiss handler, show the paywall again if needed.

Can you give that a try?