pin_code_fields
pin_code_fields copied to clipboard
Got an error while typing number 5
Got an error while typing number 5. I was testing in simulator. Please find below details for further information:
======== Exception caught by services library ======================================================
The following assertion was thrown during a platform message callback:
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#83f1b(physicalKey: PhysicalKeyboardKey#7005d(usbHidUsage: "0x0007005d", debugName: "Numpad 5"), logicalKey: LogicalKeyboardKey#00235(keyId: "0x200000235", keyLabel: "Numpad 5", debugName: "Numpad 5"), character: null, timeStamp: 4:05:09.517099)
'package:flutter/src/services/hardware_keyboard.dart':
Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=2_bug.md
When the exception was thrown, this was the stack:
#2 HardwareKeyboard._assertEventIsRegular.