currency_textfield 4.5.0 copy "currency_textfield: ^4.5.0" to clipboard
currency_textfield: ^4.5.0 copied to clipboard

A flutter package that implements a Controller for currency text input.

[4.5.0] - 2024-04-09 #

  • Added replaceCurrencySymbol function to the controller. Now it is possible to change the controller's currency symbol.
  • Forced doubleTextWithoutCurrencySymbol to be '0' when controller.text = ''.

[4.4.1] - 2024-02-21 #

  • Fixed doubleTextWithoutCurrencySymbol.

[4.4.0] - 2024-02-21 #

  • Added doubleTextWithoutCurrencySymbol getter to the controller. Now it is possible to return the number part of the controller as a String, formatted as a double (with . as decimal separator).
  • Added a check to ensure that thousandSymbol and decimalSymbol ​​are not the same.

[4.3.1] - 2024-02-19 #

  • Added maxValue property to the controller. Now it is possible to define the maximum value the user is allowed to input. Everything greater than that will be forced to the maximum value.
  • Fixed input of initIntValue when numberOfDecimals was different than 2.

[4.2.0] - 2024-02-17 #

  • Added textWithoutCurrencySymbol getter to the controller. Now it is possible to return the number part of the controller as a String. Good to avoid round errors and to use with decimal package.
  • Readme improvements.

[4.1.0] - 2024-02-16 #

  • Fixed incorrect handling of negative values.
  • Updated android sample and added web.
  • Added forceValue() function to the controller. Now it is possible to change the controller's value from outside the textfield.
  • checkNegative() function now returns true if number is negative and false if it is positive.
  • Bumped flutter_lints to 3.0.1

[4.0.0] #

  • Bumped to dart 3

[3.1.0] #

  • Added currencySeparator that lets you define the separator between the symbol and the value.

[3.0.0] #

  • Fixed a issue that blocked deleting characters one by one when currencyOnLeft = false

[2.9.0] #

  • Added the possibility to have negative numbers
  • New enableNegative parameter to block user from setting negative numbers

[2.8.0] #

  • Added currencyOnLeft parameter: now you can decide if the symbol will be before or after the number
  • breaking change: because of the new parameter, leftSymbol was renamed to currencySymbol
  • fix sample warnings and improved docs

[2.7.2] #

  • Mini fix and cleanup

[2.7.1] #

  • Improved docs
  • Increased the default maxDigits parameter to 15

[2.7.0] #

  • Removed decimal dependency in favor of int getter
  • Improved sample with the new int initializer and getter

[2.5.2] #

  • Improved sample with custom input field

[2.5.1] #

  • Bump decimal and dart versions
  • Added missing type of some variables, different getters of the controller on example and linter on code

[2.5.0] #

  • Fixed cursor position (tks @benz93chung)
  • Fixed double value not reseting when clearing content from text field
  • added init value
  • added precision to double value

[2.0.0] #

  • Migrate to null-safety

[1.0.1] - [1.0.2] - [1.0.3] - 2019-10-07. #

  • Adjust parameters.

[1.0.0] - 2019-10-07. #

  • First release.
41
likes
140
pub points
89%
popularity

Publisher

unverified uploader

A flutter package that implements a Controller for currency text input.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on currency_textfield