Closed aleaforny closed 5 years ago
Duplicate of #35
Just added onFocusChanged: (hasFocus) {}
to AutoCompleteTextField and it fixed the issue.
I still think this need to be fixed in the code as it was working before the upgrade of flutter.
Awesome thanks! @aleaforny
The suggested fix does not work on SimpleAutoCompleteTextField which throws the error when you touch a suggestion from the list.
flutter: The following NoSuchMethodError was thrown while handling a gesture:
flutter: The method 'call' was called on null.
flutter: Receiver: null
flutter: Tried calling: call("cc : cubic centimetres")
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
flutter: #1 AutoCompleteTextFieldState.updateOverlay.
same happens to me
═══════ Exception caught by gesture ═══════════════════════════════════════════ The following NoSuchMethodError was thrown while handling a gesture: The method 'call' was called on null. Receiver: null Tried calling: call("Teva Naot")
When the exception was thrown, this was the stack
package:autocomplete_textfield/autocomplete_textfield.dart:327
package:flutter/…/widgets/framework.dart:1148
package:autocomplete_textfield/autocomplete_textfield.dart:322
package:flutter/…/material/ink_well.dart:706 ... Handler: "onTap" Recognizer: TapGestureRecognizer#34e11 debugOwner: GestureDetector state: possible won arena finalPosition: Offset(243.7, 254.0) finalLocalPosition: Offset(167.7, 18.0) button: 1 sent tap down
Still no fix? I have the same problem
onFocusChanged: (hasFocus) {} does not fix it
Hello,
I've updated flutter from 1.2.x to last stable release, 1.5.4 :
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [version 6.3.9600], locale fr-FR)
No changes to the code at all. I just tried to build the appbundle again and I got some errors regarding to this plugin. Using debug, this is the error message I get when I touch the autocomplete field (without typing anything) :
I experienced this with
flutter-autocomplete-textfield 1.6.4
but I updated to last version1.6.6
and I'm facing the same issue.I tried to rollback to flutter v1.2.2 and this issue doesn't occur.
Has someone got the same issue?
Thanks