I was able to get a number in currency format with the following:
final myLocale = Localizations.localeOf(context).toString();
final longNumberFormat = NumberFormat.currency(locale: myLocale, symbol: mySymbol, decimalDigits: 2);
print(longNumberFormat.format(1234));
And the result of this is:
for the locale 'en_US': $1,234.00
for the locale 'es' or 'es_AR': 1.234,00 $
In the first case (en_US) it is correct, but for the last case (es_AR) which is Argentina Spanish (my country) it is wrong, we don't use the symbol at the end, we use it in front like the US, but the dots/commas are correct.
This is a mistake of the library? Is there a work around for this?
Thanks