flutter-autocomplete-textfield icon indicating copy to clipboard operation
flutter-autocomplete-textfield copied to clipboard

fix: InkWell requires TextFieldTapRegion for onTap suggestion to work

Open bZichett opened this issue 2 years ago • 4 comments

Similar to the problem this repository had, this library stopped working with flutter 3.7:

https://github.com/AbdulRahmanAlHamali/flutter_typeahead/commit/7a6f3338e45f3e058d7aa7a2f277e69aa0a82815

bZichett avatar Feb 12 '23 21:02 bZichett

Note: I tested on flutter 3.7 but not with < 3.7. Probably worth it to check that as well but I'd have to reinstall the old one so I held off.

bZichett avatar Feb 12 '23 21:02 bZichett

Additional note: I prefer the features / syntax for this library rather than https://api.flutter.dev/flutter/material/Autocomplete-class.html so would be neat to get this working again. In the meantime, I am able to just patch the external library after its downloaded in my main project. (Others can do the same)

bZichett avatar Feb 12 '23 21:02 bZichett

This is a great fix!

pbruins84 avatar May 12 '23 07:05 pbruins84

@pbruins84 Thanks. But since this hasnt been merged, I suggest using native flutter widget class Autocomplete @ https://api.flutter.dev/flutter/material/Autocomplete-class.html.

Relatively to easy to convert and covers most use cases at this point and less susceptible to future breakage (was able to get equivalence and cut out an external non-built in dependency.) Let me know if you cant get it working :+1:

bZichett avatar May 12 '23 09:05 bZichett