flutter_textfield_search icon indicating copy to clipboard operation
flutter_textfield_search copied to clipboard

TextFieldSearch on search result click is not working anymore

Open Wissperwind opened this issue 2 years ago • 9 comments

Hi, It was working. But I noticed a strange thing today: I can't click anymore on search results. It just closes them and clears the text field. Anyone else ran into the same problem?

Wissperwind avatar Jan 06 '23 13:01 Wissperwind

Flutter 3.7.0-14.0.pre.52 • channel master • https://github.com/flutter/flutter.git Framework • revision 507062032f (13 hours ago) • 2023-01-06 01:13:18 +0100 Engine • revision 5bd90d6e77 Tools • Dart 3.0.0 (build 3.0.0-85.0.dev) • DevTools 2.20.0

Wissperwind avatar Jan 06 '23 13:01 Wissperwind

Seems to be a flutter bug in guesture detectot

Wissperwind avatar Jan 06 '23 13:01 Wissperwind

Hey, I am facing the same issue. getSelectedValue not calling on item selection. Does anyone have any idea how to fix this?

I am using latest version of this library flutter : 3.7.1, dart : 2.19.1

HarinG10 avatar Feb 06 '23 11:02 HarinG10

facing the same issue. even changed to Inkwell.

hs-dev1 avatar Feb 14 '23 12:02 hs-dev1

Solution. Wrap a TextFieldTapRegion around the GestureDetector

manzagil avatar Feb 15 '23 20:02 manzagil

@manzagil there is no GestureDetector!!!

HarinG10 avatar Feb 16 '23 09:02 HarinG10

You can create TextFieldSearch.dart in your project and copy the source, then search for GestureDetector and wrap it

manzagil avatar Feb 16 '23 16:02 manzagil

same issue here

jpirovano avatar Apr 22 '23 20:04 jpirovano

You should try @manzagil solution. His solution working perfectly fine for me.

HarinG10 avatar Apr 24 '23 05:04 HarinG10