price_text 0.0.7
price_text: ^0.0.7 copied to clipboard
Show prices in Flutter apps with currency symbols, codes, and flags.
Changelog #
All notable changes to the price_text package will be documented in this file.
This project follows Semantic Versioning.
0.0.7 (2025-Oct-03) #
- New Feature: Introduced
usePatternWithTextSpanparameter inPriceText.- Allows you to render formatted currency amounts using
TextSpanwith custom pattern support. - Useful for cases where you want to control integer and decimal styling separately (e.g.,like e-commerce price styles).
- Allows you to render formatted currency amounts using
- Added support for
formatterPatternwithTextSpanrendering. formatterPattern: "#,##0.00"will respect number grouping while still allowingTextSpanstyling.
0.0.6 (2025-Sep-08) #
- Support for multiple currency locales.
localeproperty for controlling number formatting regionally.- Optional
formatterPatternproperty to allow custom number formatting. - Updated documentation for
PriceTextusage and locale support.
0.0.5 (2025-Sep-04) #
- Lowered Dart SDK constraint from
>=>=3.9.0 <4.0.0to>=3.0.0 <4.0.0for broader compatibility. - This update allows projects using Dart 3.8.x to integrate
price_textwithout requiring a Flutter/Dart upgrade.
0.0.4 (2025-Sep-04) #
- Updated issue tracker link.
0.0.3 (2025-Sep-04) #
- Improved documentation for
PriceText.
0.0.2 (2025-Sep-04) #
- Improved documentation for
CurrencyTypeandPriceText. - Expanded pubspec description (50–180 chars).
- Added support for custom flag alignment (
leftorright). - Added
flagSpacingandcontryCodeSpacingcustomization. - Formatted all Dart files with
dart formatto pass analyzer.
0.0.1 (2025-Sep-04) #
- Initial release of price_text.
- Provides a reusable PriceText widget for displaying currency amounts.
- Provides a customizable PriceText widget for Flutter apps.
- Ready-to-use, reusable widget that can be easily integrated into your screen.
- Supports :
- Custom text styles for amount and currency code.
- Optionally showing currency symbol, code, and flags (emoji or asset).
- Custom alignment for flags (left/right position set).
- Custom spacing between flag, currency code, and amount.
- Dynamic color based on positive/negative values or custom color for your selection.
- Option to avoid automatic currency formatting.