Skip to main content
Solved

Flutter paywall purchases_ui_flutter show full screen, top has some padding


jedipixels
Forum|alt.badge.img+5

I am using the Flutter purchases_ui_flutter package and I love it so far.

 

When the paywall screen is shown, the top of the pages shows almost to the top, but not quite. Is there a way to allow the screen to go all the way to the top of the page?

 

 

Thanks.

Best answer by toni-rico

Hi @jedipixels,

If you use the `presentPaywall` or `presentPaywallIfneeded` methods, the paywall is presented as a modal sheet in iOS (https://developer.apple.com/design/human-interface-guidelines/sheets). This means that there will be some space at the top to be able to see the background. In android, it’s presented as a full screen activity.

If you need further customization, please take a look at using the `PaywallView` component to wrap the paywall into a view: https://www.revenuecat.com/docs/tools/paywalls/displaying-paywalls#flutter. That would allow you to completely customize the appearance but you will need to handle presentation/dismissal yourself.

Let us know if you have any other questions!

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Forum|alt.badge.img+3
  • RevenueCat Staff
  • 58 replies
  • Answer
  • March 25, 2024

Hi @jedipixels,

If you use the `presentPaywall` or `presentPaywallIfneeded` methods, the paywall is presented as a modal sheet in iOS (https://developer.apple.com/design/human-interface-guidelines/sheets). This means that there will be some space at the top to be able to see the background. In android, it’s presented as a full screen activity.

If you need further customization, please take a look at using the `PaywallView` component to wrap the paywall into a view: https://www.revenuecat.com/docs/tools/paywalls/displaying-paywalls#flutter. That would allow you to completely customize the appearance but you will need to handle presentation/dismissal yourself.

Let us know if you have any other questions!


jedipixels
Forum|alt.badge.img+5
  • Author
  • Member
  • 6 replies
  • March 25, 2024

Hi @toni-rico,

Thank you so much for the link, using PaywallView worked great...


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings