adar2378 / pin_code_fields

A flutter package which will help you to generate pin code fields with beautiful design and animations. Can be useful for OTP or pin code inputs 🤓🤓
https://pub.dev/packages/pin_code_fields
MIT License
699 stars 340 forks source link

Got an error while typing number 5 #269

Closed Mahavir2405 closed 2 years ago

Mahavir2405 commented 2 years ago

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. (package:flutter/src/services/hardware_keyboard.dart:441:16)

3 HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)

4 HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:544:5)

5 KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:821:35)

6 BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:77:49)

7 BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:76:47)

8 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:389:35)

9 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:386:46)

10 _invoke2. (dart:ui/hooks.dart:189:15)

14 _invoke2 (dart:ui/hooks.dart:188:10)

15 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)

16 _Channel.push (dart:ui/channel_buffers.dart:132:31)

17 ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)

18 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:544:22)

19 _dispatchPlatformMessage (dart:ui/hooks.dart:83:31)

(elided 5 frames from class _AssertionError and dart:async)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.