Skip to main content

Missing APIs for the Flutter SDK

  • February 26, 2024
  • 1 reply
  • 33 views

Forum|alt.badge.img

Hello!

When looking at the iOS SDK, I see various methods that can be used on a Product that are missing from the Flutter SDK:

  • `localizedPricePerMonth`
  • `pricePerMonth`
  • `priceFormatter`

These are extremely useful to show the user how much their annual subscription will be per month and how much they are saving compared to the monthly subscription.

Are there plans to bring these on Flutter? Or is there a workaround? 

This post has been closed for comments

1 reply

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 586 replies
  • February 29, 2024

Hi, we do not have these on Flutter at this time, but I can pass this feedback along to the team. At this time, our Flutter SDK doesn't provide a method to format a price for a currency apart from our already formatted priceString property on a product (which comes directly from the underlying store). 
 
I'm not sure if Flutter provides a built in currency formatter, but it sounds like you might need to build this logic on your end or use a third party framework that formats currency.


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