Dn-a / flutter_tags

With flutter tags you can create selectable or input tags that automatically adapt to the screen width
https://pub.dartlang.org/packages/flutter_tags
MIT License
507 stars 127 forks source link

case insensitive suggestions #61

Open butonic opened 3 years ago

butonic commented 3 years ago

This PR makes suggestion matching case insensitive. It will replace the value of the TextEditingController with the first maches casing. In case no match is found it will revert to the original casing entered by the user.

hope this helps.

butonic commented 3 years ago

hm, I see this is a little different approach than https://github.com/Dn-a/flutter_tags/issues/52 but might fix it just as well.

to be fair: proper matching would need utf8 case folding ... but I did not want to introduce that dependency ...