0 purchases
currency text input mask
currency_text_input_mask #
A Controller with mask for currency text input, basead on the currency_textfield package.
Usage #
Import the library
import 'package:currency_text_input_mask/currency_text_input_mask.dart';
copied to clipboard
Create the Controller
CurrencyTextInputMaskController controller = CurrencyTextInputMaskController()
copied to clipboard
Currency Symbol, Decimal and Thousand separator #
It's possible to customize leftSymbol, decimal and thousand separators:
var controller = CurrencyTextInputMaskController(leftSymbol: "R\$", decimalSymbol: ".", thousandSymbol: ",");
copied to clipboard
Get double value #
To get the number value from controller, use the doubleValue property:
final double val = controller.doubleValue;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.