TerminalStudio/xterm.dart

Incompatible with flutter 3.19.0

onism0106 opened this issue · 5 comments

The argument type 'RawKeyEvent' can't be assigned to the parameter type 'KeyEvent'.

+1 Experiencing the same issue

Same issue here:

.../xterm-3.5.0/lib/src/terminal_view.dart(387,7): error GDAEE715C:  
The argument type 'RawKeyEvent' can't be assigned to the parameter type 'KeyEvent'.

+1 Same issue.

The problem arises from changes made in Flutter to keyboard key management.
See https://docs.flutter.dev/release/breaking-changes/key-event-migration

Until the library is officially updated you can try using this version:
https://github.com/Multi-Tech-s-r-l/xterm.dart

Thanks for reporting the the incompatibility.
Version 4.0.0 of xterm.dart now works with Flutter 3.19.0.