custom_formatter 0.0.2 custom_formatter: ^0.0.2 copied to clipboard
Custom formatter to format numbers.
Custom Formatter #
Custom Formatter to format input values in TextFormfield or any number.
Getting started #
Add this to your package's pubspec.yaml
file
dependencies:
custom_formatter: ^0.0.2
Usage #
Next, you just have to import the package using:
import 'package:custom_formatter/custom_formatter.dart';
Widget build(BuildContext context) {
return TextFormField(
inputFormatters: [
CustomNumberFormatter(),
],
);
}
Widget build(BuildContext context) {
return Text(
int.parse("123456").format,
);
}
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.