Skip to main content
Answer

Close Button in Flutter Paywalls

  • March 2, 2024
  • 5 replies
  • 437 views

Forum|alt.badge.img+4

When presenting paywalls using .presentPaywallIfNeeded in Flutter, RevenueCatUI does not include a close button. I've tried it with 5 - Bengal template. Can you please update the Flutter package so that the close button is displayed automatically on the paywall?

Best answer by ashxbl

final paywallResult = await RevenueCatUI.presentPaywall(displayCloseButton: true);

 

This post has been closed for comments

5 replies

Forum|alt.badge.img+4
  • Author
  • Member
  • March 2, 2024

Or at least you could make it optional.


Forum|alt.badge.img+2
  • Helper
  • Answer
  • March 3, 2024
final paywallResult = await RevenueCatUI.presentPaywall(displayCloseButton: true);

 


Forum|alt.badge.img+4
  • Author
  • Member
  • March 3, 2024

@ashxbl 

 

Looks like it is already possible. I used an older package. Thank you!


Forum|alt.badge.img+2
  • Helper
  • March 3, 2024

No worries, was searching myself earlier after app got rejected because of it.


Forum|alt.badge.img+4
  • Author
  • Member
  • March 3, 2024

By the way it might be a good idea to be able to change the the color of the close button, because depending on the background Image the close button could be barely visible