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.
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.
- pinput
Customizable animated PIN and OTP code input widget with autofill support.
93Compare - validatorless
Provides a means to validate text inputs on Flutter inspired by Yup.
79Compare - languagetool_textfield
A text field widget with real-time spell-checking and grammar correction using LanguageTool API.
76Compare - flutter_masked_text2
Masked and money text input controllers for Flutter text fields.
50Compare
Works with
Packages commonly used together with currency_text_input_formatter: ones it builds on, ones built on it, and its own family.