number2words:

Flutter Package for Converting Numbers to Words .Effortlessly transform numbers into their written counterparts with Number2Words, your go-to Flutter toolkit!

What it Does

Number2Words takes any integer or double and delivers its accurate textual representation, seamlessly handling:

  • Large Numbers: Can convert up to 12 digits
  • Decimals: Convert with precision, up to your desired decimal places.
  • Grammatical Accuracy: Singular/plural forms, hyphens, and "and" placement are handled perfectly.
  • Customizations: Specify the currency format, language (optional), and lettercases like Titlecase, Lowercase, UpperCase and Sentence Case

Getting Started

  1. Add Number2Words to your pubspec.yaml:
dependencies:
  number2words: ^0.x.x # Replace `0.x.x` with the latest version
  1. Import the package:
import 'package:number2words/number2words.dart';
  1. Convert your numbers:
final words = Number2Words.convert(1234567); 
// "One Million Two Hundred Thirty-Four Thousand Five Hundred Sixty-Seven dollars"

Contribute to Number2Words!

We welcome your contributions to improve Number2Words! Feel free to:

  • Report issues or suggest new features on the GitHub repository.
  • Submit pull requests with bug fixes or enhancements.
  • Share your feedback and experiences in the package discussions.

License

Number2Words is released under the MIT license.

We hope Number2Words becomes a valuable asset in your Flutter development toolkit!

Please note: This is a template, so feel free to customize it to fit your specific package's features and functionalities. Don't forget to update the package name, version, and link to the pub.dev page.

Happy coding!

I hope this conversion to md format is accurate and useful for you!

Libraries

number2words
A library for converting numbers to words.