Daniel-Ioannou / flutter_currency_picker

A flutter package to select a currency from a list of currencies.
https://pub.dev/packages/currency_picker
MIT License
35 stars 91 forks source link

Offer a way to mark a currency as the selected one #22

Open rocboronat opened 3 years ago

rocboronat commented 3 years ago

As the user is able to select a currency and then open the picker again, the picker should be smart enough to mark the selected currency in some way. Maybe a tick ✔️? And maybe the list should be scrolled to show that value when showing the picker.

Daniel-Ioannou commented 3 years ago

@rocboronat It is a good suggestion but unfortunately I do not have the time to implement this now. I will implement it on the future. If you have the time feel free to implement it and create a PR.

rocboronat commented 3 years ago

Ok! Thanks a lot 😊

Daniel-Ioannou commented 2 years ago

@rocboronat You can favorite option to show the selected currency on the top of the list.

showCurrencyPicker(
  context: context,
  onSelect: (Currency currency) {
    print('Select currency: ${currency.name}');
  },
  favorite: <String> ['EUR'],
);