flutter_currency_picker icon indicating copy to clipboard operation
flutter_currency_picker copied to clipboard

Currency added in favorite and currencyFilter are showing twice

Open Charlinjoeaht opened this issue 1 year ago • 1 comments

Currency added in favorite and currencyFilter are showing twice in the popup

sample code to induce error

        showCurrencyPicker(
          context: context,
          currencyFilter: ['eur', 'inr', 'usd'],
          favorite: ['eur', 'inr', 'usd'],
        );

Charlinjoeaht avatar Mar 08 '23 11:03 Charlinjoeaht

@Charlinjoeaht Thank you for opening an issue, but I don't think that's issue. Favorite is used to display certain currencies at the top of the list, but these currencies is are still inside the list.

For example you can use currencyFilter to filter the currencies that is supported by your app and the favorite to show on the top the selected currency if you have one.

Daniel-Ioannou avatar Apr 09 '23 16:04 Daniel-Ioannou