Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: How To display Currency In Indian Numbering Format?

Tags:

flutter

have a question about formatting the Rupee currency (Indian Rupee - INR).

For example, numbers here are represented as:

1

10

100

1,000

10,000

1,00,000

10,00,000

1,00,00,000

10,00,00,000

But not able to find any reference library where I can separate comma number in Indian formate.

like image 975
Avadhesh Mourya Avatar asked Apr 20 '20 12:04

Avadhesh Mourya


People also ask

How do you display currency in flutter?

MoneyFormatter is a Flutter package to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.

How do you change currency in flutter?

Create a NumberFormat that formats using the locale's CURRENCY_PATTERN. If locale is not specified, it will use the current default locale. If name is specified, the currency with that ISO 4217 name will be used. Otherwise we will use the default currency name for the current locale.

How can I get rupee symbol in flutter?

Text('\u{20B9}${your amount}'), This is to get Indian currency symbol rupee in your flutter app.


1 Answers

You can use Intl package as follow:

    var format = NumberFormat.currency(locale: 'HI');
    print(format.format(100000000));//10,00,00,000.00
like image 68
Haidar Avatar answered Oct 12 '22 12:10

Haidar