crawlinknetworks / dropdown_plus

Simple and easy to use Dropdown in forms with search, keyboard navigation, offiline data source, remote data source and easy customization.
MIT License
12 stars 43 forks source link

The code from the example dropdown_plus package is working fine but in console I am getting this error. #10

Open tejasvb opened 2 years ago

tejasvb commented 2 years ago

The following assertion was thrown during a platform message callback: Assertion failed: file:///C:/flutter/packages/flutter/lib/src/services/hardware_keyboard.dart:437:16 !_pressedKeys.containsKey(event.physicalKey) "A KeyDownEvent is dispatched, but the state shows that the physical key is already 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: KeyDownEvent#6f703(physicalKey: PhysicalKeyboardKey#70009(usbHidUsage: \"0x00070009\", debugName: \"Key F\"), logicalKey: LogicalKeyboardKey#00066(keyId: \"0x00000066\", keyLabel: \"F\", debugName: \"Key F\"), character: \"f\", timeStamp: 0:00:11.550000)"

When the exception was thrown, this was the stack: C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/errors.dart 251:49 throw C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed packages/flutter/src/services/hardware_keyboard.dart 437:47 packages/flutter/src/services/hardware_keyboard.dart 451:14 [_assertEventIsRegular] packages/flutter/src/services/hardware_keyboard.dart 543:5 handleKeyEvent packages/flutter/src/services/hardware_keyboard.dart 821:57 handleRawKeyMessage C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/flutter/src/services/hardware_keyboard.dart 808:51 handleRawKeyMessage packages/flutter/src/services/platform_channel.dart 73:49 C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/flutter/src/services/platform_channel.dart 72:58 packages/flutter/src/services/binding.dart 379:35 C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/flutter/src/services/binding.dart 376:98 C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 1034:13 invoke2 C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/src/ui/channel_buffers.dart 25:5 invoke C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/src/ui/channel_buffers.dart 65:7 push C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/src/ui/channel_buffers.dart 130:16 push C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 302:25 invokeOnPlatformMessage C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/keyboard.dart 130:39 [_handleHtmlEvent] C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/keyboard.dart 44:7