Skip to content
pubscout

number_to_word_arabic

0.0.8, released 6 years ago by orbyte.online

Convert integer numbers to Arabic words up to 99 trillion.

WASM-ready
$ flutter pub add number_to_word_arabic
Source repository

What it does

This package provides a simple API to transform numeric values into their Arabic word representation. It supports numbers up to 99 trillion and is null‑safe.

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

Use it when

  • You need to display numbers in Arabic words in a Flutter app.
  • You want a lightweight solution without external dependencies.
  • You need support for large numbers up to the trillions range.

Skip it when

  • You require localization for multiple languages beyond Arabic.
  • You need advanced formatting or pluralization rules.
  • You are building a production app that requires extensive testing and maintenance.

Strengths

  • Zero external dependencies, only flutter.
  • Supports very large numbers (up to 99 trillion).
  • Simple API: Tafqeet.convert('123').

Weaknesses

  • No support for other languages or locales.
  • No unit tests or documentation beyond a basic README.
  • No advanced formatting options (e.g., gender, case).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency in pubspec and import the package.

import 'package:number_to_word_arabic/number_to_word_arabic.dart';

void main() {
  print(Tafqeet.convert('123')); // مائة وثلاثة وعشرون
}

Alternatives

Packages that do the same job and could replace number_to_word_arabic.

  • safe_text

    Fast Dart profanity and swear word filter with phone number detection for 80+ languages.

  • decimal

    Arbitrary-precision decimal arithmetic for Dart

  • rational

    Allows you to deal with rational numbers in Dart.

  • text

    Get detailed text metrics like lines, character positions, and locations.