Skip to content
pubscout

currency_text_input_formatter

2.3.3, released 3 weeks ago by an unverified publisher

Currency text input formatter for Flutter with localization and symbol support.

WASM-readyRock solid
$ flutter pub add currency_text_input_formatter
Source repository

What it does

Provides a text input formatter for Flutter that automatically formats numerical input into currency strings based on specified locales, decimal digits, and symbols. It also supports getting unformatted values and setting minimum or maximum limits.

AI-written summary of version 2.3.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to format user text input as currency inside a TextField or TextFormField.
  • You require locale-aware currency symbol and group separator handling.

Skip it when

  • You are not dealing with currency input fields.
  • You need a complex form builder framework rather than a simple input formatter.

Strengths

  • Easy to integrate into standard Flutter TextFields via inputFormatters.
  • Supports customizable locales, symbols, decimal digits, and bounds.
  • Provides built-in helper methods to extract unformatted numeric values.

Weaknesses

  • May require dependency overrides for the intl package depending on your project constraints.
  • Cursor position management can be tricky depending on input direction.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Might require dependency_overrides for the intl package if version conflicts arise.

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

Alternatives

Packages that do the same job and could replace currency_text_input_formatter.

Works with

Packages commonly used together with currency_text_input_formatter: ones it builds on, ones built on it, and its own family.