App/Flutter

[ FLUTTER ] TextFormField 키보드 관련 이슈

거북 2023. 10. 8. 21:52
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception:
'package:flutter/src/services/hardware_keyboard.dart': Failed assertion:
line 434 pos 16: '_pressedKeys.containsKey(event.physicalKey)':
A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed.
If this occurs in real application, please report this bug to Flutter.
If this occurs in unit tests, please ensure that simulated events follow 
Flutter's event model as documented in `HardwareKeyboard`. 
This was the event: KeyUpEvent#c825b(physicalKey: PhysicalKeyboardKey#e6f4b(
usbHidUsage: "0x0007002a", debugName: "Backspace"), 
logicalKey: LogicalKeyboardKey#147d9(keyId: "0x100000008", 
keyLabel: "Backspace", debugName: "Backspace"), 
character: null, timeStamp: 0:00:04.824600, synthesized)

 

해결방법 : 에뮬레이터 종료 후 재구동