bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
636 stars 290 forks source link

[Bug] The argument type 'RawKeyEvent' can't be assigned to the parameter type 'KeyEvent'. #1024

Closed hungmt closed 1 month ago

hungmt commented 4 months ago

I got a error, can resolve, upgrade to 8.0.0 so got error intl 19 image Error Text: /C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid-7.0.2/lib/src/manager/shortcut/pluto_grid_shortcut.dart:33:39: Error: The argument type 'RawKeyEvent' can't be assigned to the parameter type 'KeyEvent'.

leva0212 commented 3 months ago

I am facing the same trouble since today.

groksrc commented 3 months ago

I have this error too, but I am on macos

shayneoneill commented 3 months ago

Same problem. On Macos. Absolutely bamboozled by it as I'm not going anywhere near that code.

For me seems to affect 7.x . Cant upgrade to 8.x as it has a dependency conflict with fluent_ui, and downgrading to 6.x just blows the whole thing up so I presume the api just isnt compat.

psarridis commented 3 months ago

Same problem here.

Windows Flutter version 3.19.2 Pluto_grid version 8.0.0

So in flutter 3.19.2 the intl version is pinned to 0.18.1 check flutter repo But in pluto grid 8.0.0 the intl version is 0.19.0 check pluto grid repo

kutsaltekbas commented 3 months ago

using pluto_grid_plus worked for me

leva0212 commented 3 months ago

using pluto_grid_plus worked for me

After having lost all hope I read your comment about pluto_grid_plus and I was able to restore my pluto gris as I had them, thank you very much

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

naidu199 commented 1 month ago
 if (action.key.accepts(keyEvent.event, state)) 
 change this line of code in the /C:/Users/Naidu/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid-7.0.2/lib/src/manager/shortcut/pluto_grid_shortcut.dart:33:40: in this in your terminal with this 
       if (action.key.accepts(keyEvent as KeyEvent, state as HardwareKeyboard)) 
       By this this error has been resolved for me