Search packages, repositories and app categories

Package detailsv1.0.0

number_to_words

Convert number into words by localeID

AndroidiOSWebmacOSWindowsLinux
30-day downloads
9.5K
Likes
44
Pub points
140

Install package

flutter pub add number_to_words

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The number_to_words package converts numeric values into their corresponding written form in various languages, using locale identifiers. It supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for applications requiring localized number formatting—such as financial documents, invoices, or educational tools. The package leverages the underlying locale-specific rules to ensure accurate word representation across different regions. It is lightweight and integrates seamlessly with Flutter projects via a simple add command.

Use cases

  • Generating invoice amounts in words
  • Converting numbers for accessibility features
  • Creating educational math tools
  • Formatting financial reports
  • Supporting multilingual applications
  • Displaying numbers in legal documents

Key features

  • Locale-aware number-to-word conversion
  • Cross-platform support
  • Simple integration with Flutter
  • Supports multiple languages
  • Lightweight and efficient
  • Easy-to-use API

Suitable for

  • Financial and accounting apps
  • Educational software
  • Multilingual applications
  • Accessibility enhancements
  • Document generation tools

Considerations

  • Limited to predefined locales
  • May require additional localization setup
  • Not suitable for very large numbers beyond standard ranges
  • Depends on external library for full language coverage
  • Performance impact with high-frequency conversions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

number_to_words

API convert number to words by localeID. Now only support English And Malayalam. please contribute .

Usage

To use this plugin, add number_to_words as a dependency in your pubspec.yaml file.

Example

import 'package:number_to_words/number_to_words.dart';

void main() {

   print(NumberToWord().convert(Locale.ml, 21)); //ഇരുപത്തിയൊന്ന്
   print(NumberToWord().convert(Locale.ml, 10)); //പത്ത്
   print(NumberToWord().convert(Locale.ml, 1000)); //ആയിരം
   print(NumberToWord().convert(Locale.en_ind, 1000)); //thousand
   print(NumberToWord().convert(Locale.en_ind, 100)); //hundred
   print(NumberToWord().convert(Locale.en_ind, 10)); //ten
}

Categories

Source repository

Projects using this package

No data available yet.