fernan542 / fl_country_code_picker

A Flutter package for showing a modal that contains country dial code. The user can also search for the available codes and select right from the modal.
MIT License
19 stars 34 forks source link

Search not working when app localized #10

Closed tologonkudaiberdiuulu closed 1 year ago

tologonkudaiberdiuulu commented 1 year ago

Hi, again @fernan542 ! Searching with localized app not working. I've checked your code and there was availableCountryCodes ..clear() ..addAll( List<CountryCode>.from( baseList.where( (c) => c.code.toLowerCase().contains(query.toLowerCase()) || c.dialCode .toLowerCase() .contains(query.toLowerCase()) || c.name.toLowerCase().contains(query.toLowerCase()), ), ), ); , which is not getting localized name of country code. I've tried to search Singapoore(in English). It's working fine. But when I switched to other languages, it's not giving results

fernan542 commented 1 year ago

Hello, thanks for pointing out! I'll push a fix today.

fernan542 commented 1 year ago

Fixed in new release! 🔥 https://pub.dev/packages/fl_country_code_picker/versions/0.1.2

Thanks!