here is how i am getting list of currency but not able to show them inside dropdown Future getCurrency()async{
final res = await locale.listCurrencies();
print(res.currencies);
return res.currencies;
}
You're not getting a list?
getting list like [instance of Currency, instance of Currency] but not able to show them in droupdown
Then you need to create a dropdown then iterate over the items, like so
https://api.flutter.dev/flutter/material/DropdownButton-class.html
yes i am using map to get all element Future getCurrency()async{
final res = await locale.listCurrencies();
print(res.currencies.map((e) => e.symbol));
return res.currencies.map((e) => e);
}
You'll need to use your widget state to add it to drop-down
now, its working, but why some Currency symbols are not correct.
here is the list of all currencies,[$, €, £, $, د.إ., ؋, Lek, դր., $, $, ман., KM, ৳, лв., د.ب., FBu, $, Bs, R$, P, BYR, $, FrCD, CHF, $, CN¥, $, ₡, CV$, Kč, Fdj, kr, RD$, د.ج., kr, ج.م., Nfk, Br, GEL, GH₵, FG, Q, $, L, kn, Ft, Rp, ₪, ₹, د.ع., ﷼, kr, $, د.أ., ¥, Ksh, ៛, FC, ₩, د.ك., тңг., SL Re, Lt, Ls, د.ل., د.م., MDL, MGA, MKD, K, MOP$, MURs, $, RM, MTn, N$, ₦, C$, kr, नेरू, $, ر.ع., B/., S/., ₱, ₨, zł, ₲, ر.ق., RON, дин., руб., FR, ر.س., SDG, kr, $, Ssh, ل.س., ฿, د.ت., T$, TL, $, NT$, TSh, ₴, USh, $, UZS, Bs.F., ₫, FCFA, CFA, ر.ي., R, ZK]
If anything is wrong, you can create an issue. This is where it all is: https://github.com/appwrite/appwrite/blob/master/app/config/locale/currencies.php
Recommended threads
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...