0 purchases
uiv formater collection
This is collection of flutter input formater i build for my project. I work on this project on my spare time.
Features #
UIVInputFormaterCurrency
Usage #
Usage of UIVInputFormaterCurrency
Using to convert from double to String or String to double
var fomater = UIVInputFormaterCurrency();
double decimalNominal = 73883.9655;
String decimalNominalText = "73,883.9655";
// using to convert value double to string using formater
fomater.formatDoubleToString(decimalNominal);
// result (Stirng) "73,883.97"
fomater.formatStringToDouble(decimalNominalText, isRounded: true),
// result (double) 73883.97
fomater.formatStringToDouble(decimalNominalText, isRounded: false),
// result (double) 73883.9655
copied to clipboard
-Using as TextInputFormater on TextField
TextField(
controller: _textController,
inputFormatters: [
UIVInputFormaterCurrency()
],
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.