Closed vignesh235 closed 11 months ago
Hello, @vignesh235, Thanks for filing the issue. Do you mean GestureDetector does not capture, Gestures captured on Searchfield?
btw, May I know what use case are you trying to achieve by wrapping Searchfield with Gesturedetector?
@maheshmnj I want to call the API function while tap the search field and assign the value through the API function.
@vignesh235, If I understand it right you want to call your API, when searchfield is tapped (meaning searchfield gains focus) is that correct?
Also, if you are trying to load the suggestions from API, In my opinion, suggestions should be loaded when the widget loads and not when the widget is interacted with.
If so have you tried using focusNode?
btw, I am afk to test your code what happens with the Gesture Detector? is the tap not triggered?
Yes the tap is not triggered.
@vignesh235 Exposed onTap method to SearchField which should help you with your use case.
Closing as fixed in v0.9.0
@vignesh235 I have also added a sample example to load suggestions from network , please see the readme for sample code https://github.com/maheshmnj/searchfield