intl_phone_number_input icon indicating copy to clipboard operation
intl_phone_number_input copied to clipboard

Sorting country names is incorrect in other locals.

Open ctykaya opened this issue 3 years ago • 1 comments

Describe the bug When change the locale to "tr" the countries sorted incorrectly in dialog. The sorting is remain in "en" It is working correctly when the local in default.

Package version Your current version of the package [e.g. 0.1.2] ^0.7.0+2

Flutter version Your current version of the Flutter SDK [e.g. 1.11] Flutter 2.2.3

To Reproduce 1.Change the locale to "tr"

ctykaya avatar Aug 31 '21 23:08 ctykaya

Ok figure it out the solution for sorting.

countryComparator: ((x,y)=>x.nameTranslations["tr"].compareTo(y.nameTranslations["tr"])),

ctykaya avatar Sep 01 '21 00:09 ctykaya