currency_textfield_2 2.5.1 copy "currency_textfield_2: ^2.5.1" to clipboard
currency_textfield_2: ^2.5.1 copied to clipboard

outdated

A Controller for currency text input.

currency_textfield_2 #

A Controller for currency text input

Forked from https://pub.dev/packages/currency_textfield Updated with fixes and new settings

[sample]

Install #

Follow this guide

Usage #

Import the library

import 'package:currency_textfield_2/currency_textfield_2.dart';

Create the Controller

CurrencyTextFieldController controller = CurrencyTextFieldController()

Currency Symbol, Decimal and Thousand separator #

It's possible to customize leftSymbol, decimal and thousand separators:

var controller = CurrencyTextFieldController(leftSymbol: "RR", decimalSymbol: ".", thousandSymbol: ",");

Get double value #

To get the number value from controller, use the doubleValue property:

final double val = controller.doubleValue;
10
likes
0
points
125
downloads

Publisher

unverified uploader

Weekly Downloads

A Controller for currency text input.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

decimal, flutter

More

Packages that depend on currency_textfield_2