extenso
1.0.1, released 2 years ago by gerbertsantos.com.br
Converts numeric values to their Portuguese textual representation.
WASM-ready
What it does
Provides a function that turns a number, typically a monetary amount, into a written Portuguese phrase. Works on all Flutter platforms without additional setup.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display amounts in words in Portuguese
- You want a lightweight, zero‑dependency solution for number‑to‑text conversion
Skip it when
- You require multi‑language support
- You need highly customizable formatting or performance‑critical conversion
Strengths
- Simple, single‑function API
- Zero external dependencies
- Works on Android, iOS, web, desktop
Weaknesses
- Only supports Portuguese
- Limited to monetary style conversion
- No customization of output format
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:extenso/extenso.dart';
void main() {
double valor = 1234.56;
String valorPorExtenso = extenso(valor);
print(valorPorExtenso); // "um mil, duzentos e trinta e quatro reais e cinquenta e seis centavos"
}