0 purchases
custom formatter
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
copied to clipboard
Usage #
Next, you just have to import the package using:
import 'package:custom_formatter/custom_formatter.dart';
copied to clipboard
Widget build(BuildContext context) {
return TextFormField(
inputFormatters: [
CustomNumberFormatter(),
],
);
}
copied to clipboard
Widget build(BuildContext context) {
return Text(
int.parse("123456").format,
);
}
copied to clipboard
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.