currency_formatter 2.3.0
currency_formatter: ^2.3.0 copied to clipboard
A package to easily format money. It supports setting a custom currency symbol and format, using some of the inbuilt ones for the main currencies or using the system one.
2.3.0 - 2025-05-25 #
Added #
- Added
negativeSignPlacementoption toCurrencyFormatto control the position of the negative sign. This allows formatting like-€123.45or-$123.45when the symbol is on the left andnegativeSignPlacementis set toNegativeSignPlacement.beforeSymbol. Defaults to previous behavior (e.g.,€-123.45or$-123.45) if not specified or ifnegativeSignPlacementisNegativeSignPlacement.afterSymbol.
2.2.3 - 2025-04-08 #
- Replaced
dart:htmlusage withpackage:web.
2.2.2 - 2025-01-10 #
- Expanded
intlpackage support range (>=0.17.0 <0.21.0) for better compatibility with different project versions.
2.2.1 - 2024-04-04 #
- Upgraded dependencies.
- Added examples.
- Added tests.
2.2.0 - 2023-11-23 #
- Added the
CurrencyFormatter.majorsListlist. - Deprecated
CurrencyFormatter.majorsandCurrencyFormatter.symbolsin favor ofCurrencyFormatter.majorsList. - Added the
codeproperty toCurrencyFormat. - Modified
CurrencyFormatter.fromSymbol()to accept an optionalList<CurrencyFormat>parameter specifying a custom list of currencies. - Added
CurrencyFormatter.fromCode()to get aCurrencyFormatfrom a currency code (e.g.usd). - Added
CurrencyFormatter.fromLocale()to get aCurrencyFormatfrom a locale.
2.1.0 - 2023-10-01 #
- Removed
flutterdependency. This package is pure Dart. - Removed
universal_iodependency. It was preventing this package support for web to be properly displayed on pub.dev. - Increased minimum Dart version to
2.13.0. - Renamed
CurrencyFormatterSettingstoCurrencyFormatter. The old name is still available as a deprecated class. CurrencyFormat.thousandSeparatorandCurrencyFormat.decimalSeparatorgetters are now non-nullable.CurrencyFormatconstructor is now fullyconst.CurrencyFormatter.majorsis nowconstand so are all its values.- Add
CurrencyFormatequality operator. TwoCurrencyFormats are equal if all their properties are equal. - Add
CurrencyFormat.toString().
2.0.1 - 2023-05-12 #
- Upgraded
intlpackage to^0.18.0to enable support for Flutter 3.10.
2.0.0 - 2022-08-21 #
Major changes.
- Changed dependency from
dart:iotouniversal:iofor better web support. CurrencyFormatteris now anabstractclass, soformat()andparse()arestaticmethods.- Included currencies can now be accessed from
CurrencyFormatterSettings. CurrencyFormatterSettingsnow accepts asymbolSeparatorparameter.CurrencyFormatterSettingscan now be modified usingcopyWith()method.CurrencyFormater().getLocal()is nowCurrencyFormatterSettings.local.
1.2.1 - 2022-04-20 #
Added CurrencyFormatter().parse().
Fixed a formatting bug with thousandSeparator for negative numbers.
1.2.0 - 2021-11-27 #
Migrated to sound null safety.
1.1.1 - 2021-08-25 #
Fixed bug where thousandSeparator would not show.
Fixed bug where with compact formatting.
1.1.0 - 2020-12-22 #
Removed flutter_money_formatter dependency. Now it only depends on intl and its latest version can be used.
1.0.1 - 2020-10-04 #
Improve pub score.
1.0.0 - 2020-10-02 #
Initial release.