flutter_currency_picker icon indicating copy to clipboard operation
flutter_currency_picker copied to clipboard

Offer a way to mark a currency as the selected one

Open rocboronat opened this issue 3 years ago • 3 comments

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.

rocboronat avatar Mar 22 '21 09:03 rocboronat

@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.

Daniel-Ioannou avatar Apr 01 '21 12:04 Daniel-Ioannou

Ok! Thanks a lot 😊

rocboronat avatar Apr 01 '21 13:04 rocboronat

@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'],
);

Daniel-Ioannou avatar May 12 '22 21:05 Daniel-Ioannou