fix!: Migrate from RawKeyEvent to KeyEvent (#3002)

First pass at migrating from `RawKeyEvent` and `RawKeyboard`
to `KeyEvent` and `HardwareKeyboard`.

Context:
https://docs.flutter.dev/release/breaking-changes/key-event-migration
This commit is contained in:
Brett Morgan
2024-02-16 09:10:51 +11:00
committed by GitHub
parent 20d368c326
commit 330862c98e
53 changed files with 90 additions and 83 deletions

View File

@ -142,7 +142,7 @@ Press T button to toggle player to collide with other objects.
@override
KeyEventResult onKeyEvent(
RawKeyEvent event,
KeyEvent event,
Set<LogicalKeyboardKey> keysPressed,
) {
for (final key in keysPressed) {