number_text_input_formatter 1.0.0+8 copy "number_text_input_formatter: ^1.0.0+8" to clipboard
number_text_input_formatter: ^1.0.0+8 copied to clipboard

Number Text Input Formatter for Flutter

Number Text Input Formatter #

Number Text Input Formatter for Flutter.

Installation #

# Add into pubspec.yaml
dependencies:
  number_text_input_formatter: ^lastVersion

Usage #

For number

TextField(
  inputFormatters: [
    NumberTextInputFormatter(
      integerDigits: 10,
      decimalDigits: 2,
      maxValue: '1000000000.00',
      decimalSeparator: '.',
      groupDigits: 3,
      groupSeparator: ','
      allowNegative: false,
      overrideDecimalPoint: true,
      insertDecimalPoint: false,
      insertDecimalDigits: true,
    ),
  ],
  keyboardType: TextInputType.number,
),

For currency

TextField(
  inputFormatters: [CurrencyTextInputFormatter()],
  keyboardType: TextInputType.number,
),

For percentage

TextField(
  inputFormatters: [PercentageTextInputFormatter()],
  keyboardType: TextInputType.number,
),
29
likes
120
pub points
95%
popularity

Publisher

unverified uploader

Number Text Input Formatter for Flutter

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on number_text_input_formatter