fadhly-permata / flutter_money_formatter

"FlutterMoneyFormatter" is a Flutter extension to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.
https://pub.dartlang.org/packages/flutter_money_formatter
Other
85 stars 106 forks source link

Add option to set significantDigits for compact format #39

Open dzakyraf opened 1 year ago

dzakyraf commented 1 year ago

Is your feature request related to a problem? Please describe. Yes when we format this number: 1314731674000000 this turnout be 1,310T in web not 1,315T. After investigate this is because in web js have significantDigits in 3

Describe the solution you'd like add option in settings for set this

Describe alternatives you've considered

Additional context If u using intl in behind you can use this snipplets as inspiration:

var formatter = NumberFormat.compact(locale: "id_ID")
          ..significantDigits = 4;
String formatted = formatter.format(value);