persian_numbers

A Flutter Package to convert english numbers to persian and vice versa.

Getting Started

  • var persianNumber = PersianNumbers.toPersian("1400"); // persianNumber = '۱۴۰۰';

  • var numberWidgetToShow = Text(persianNumber);

  • var englishNumber = PersianNumbers.toEnglish(persianNumber); // englishNumber = '1400';

  • var result = englishNumber + 200;

Libraries

persian_numbers