Missing APIs for the Flutter SDK

  • 26 February 2024
  • 1 reply
  • 22 views

Badge

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

Userlevel 4
Badge +8

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.