flutter_currency_picker
flutter_currency_picker copied to clipboard
Add cryptocurrencies
It would be great if you could add some cryptocurrencies to the list. Here I have the first 19.
I think the flag stuff should be modified to hold images also instead of the current String?
variable type. Also, the icons should be retrieved from assets I think.
Thank you for your nice work.
// Below this comment there are the main cryptocurrencies as listed by
// https://www.coindesk.com/coindesk20/
// All of these are based on the USD attributes.
{
"code": "BTC",
"name": "Bitcoin",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Bitcoins",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "ETH",
"name": "Ethereum",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Ethereums",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "USDT",
"name": "Tether",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Tethers",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "USDC",
"name": "USD Coin",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "USD Coins",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "XRP",
"name": "XRP",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "XRPs",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "SOL",
"name": "Solana",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Solanas",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "ADA",
"name": "Cardano",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Cardanos",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "XLM",
"name": "Stellar",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Stellars",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "DOGE",
"name": "Dogecoin",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Dogecoins",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "DOT",
"name": "Polkadot",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Polkadots",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "AVAX",
"name": "Avalanche",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Avalanches",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "LINK",
"name": "Chainlink",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Chainlinks",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "SHIB",
"name": "Shiba Inu",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Shiba Inus",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "MATIC",
"name": "Polygon",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Polygons",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "ATOM",
"name": "Cosmos",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Cosmos",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "GALA",
"name": "Gala",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Galas",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "MANA",
"name": "Decentraland",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Decentralands",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "LRC",
"name": "Loopring",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Looprings",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
},
{
"code": "LUNA",
"name": "Luna Classic",
"symbol": "\$",
"decimal_digits": 2,
"number": -1,
"name_plural": "Luna Classics",
"thousands_separator": ",",
"decimal_separator": ".",
"space_between_amount_and_symbol": false,
"symbol_on_left": true,
}