doonfrs / pluto_grid_plus

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
18 stars 20 forks source link

Build error on getter in HardwareKeyboard class #15

Closed darkomenx closed 6 months ago

darkomenx commented 6 months ago

Technical context :

work context : Just and first replace of pluto_grid package to pluto_grid_plus package in a project that use pluto_grid in few screens. This error was throwed in a build project step. Nothing notice about source code stacktrace.

error :

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/helper/pluto_key_manager_event.dart(97,38): 
error G4127D1E8: The getter 'isShiftPressed' isn't defined for the class 'HardwareKeyboard'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/helper/pluto_key_manager_event.dart(101,38): 
error G4127D1E8: The getter 'isMetaPressed' isn't defined for the class 'HardwareKeyboard'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/helper/pluto_key_manager_event.dart(102,35): 
error G4127D1E8: The getter 'isControlPressed' isn't defined for the class 'HardwareKeyboard'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/helper/pluto_key_manager_event.dart(106,38): 
error G4127D1E8: The getter 'isAltPressed' isn't defined for the class 'HardwareKeyboard'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/manager/shortcut/pluto_grid_shortcut.dart(33,39): 
error GC2F972A8: The argument type 'KeyEvent' can't be assigned to the parameter type 'RawKeyEvent'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

/C:/Users/toto/AppData/Local/Pub/Cache/hosted/pub.dev/pluto_grid_plus-8.3.0/lib/src/manager/shortcut/pluto_grid_shortcut.dart(33,46): 
error GC2F972A8: The argument type 'HardwareKeyboard' can't be assigned to the parameter type 'RawKeyboard'. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): 
error MSB8066: la build personnalis�e de 'C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\CMakeFiles\e06ad74d88d57f94f34b2c209e55916f\flutter_windows.dll.rule;

C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\CMakeFiles\468867c259ba90e51417479bb0316122\flutter_assemble.rule;

C:\PROJECT\ANDROIDStudio\my_project\windows\flutter\CMakeLists.txt' s'est arretée. Code 1. [C:\PROJECT\ANDROIDStudio\my_project\build\windows\x64\flutter\flutter_assemble.vcxproj]
Exception: Build process failed

What do you think about this ?

Thank you for your help.

doonfrs commented 6 months ago

Flutter : 3.16.9 (channel stable) very old, please do flutter upgrade and try again.

darkomenx commented 6 months ago

Sorry I understand my behaviour. I detected errors with pluto_grid with latest version of Flutter and before try to migrate with pluto_grid_plus I downgrade Flutter version for surely overcome migration.

I confirm with the latest version of flutter (3.19.1 channel stable) your package work correctly. Again thank you for your work for make available this good package into maintained life.

Sorry for trouble 👍