FlutterError ShortcutRegistry in cascading_menu_page.dart in Context_Menus · Issue #2590 · flutter/samples · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred.
FlutterError (ShortcutRegistry: Received a duplicate registration for the shortcut SingleActivator#39312(keys: Control + Key S) in ShortcutRegistryEntry#64d8f and Instance of 'ShortcutRegistryEntry'.)
The text was updated successfully, but these errors were encountered:
It seems to be some problem with the dispose method
with the original code, if I right clicked twice, the ShortcutRegistry.of(context) did not dispose properly, and the same shortcuts were added again. That caused the problem
If I verify the length before adding the shortcuts, the problem solved. However, it seems to be a workaround, I did not understand why the dispose did not work properly.
What do you think about this solution? If it is good enough, I will push a merge request
Exception has occurred.
FlutterError (ShortcutRegistry: Received a duplicate registration for the shortcut SingleActivator#39312(keys: Control + Key S) in ShortcutRegistryEntry#64d8f and Instance of 'ShortcutRegistryEntry'.)
The text was updated successfully, but these errors were encountered: