Skip to content

Commit

Permalink
🔧 Update dependencies and use KeyboardListener instead of RawKeyboard…
Browse files Browse the repository at this point in the history
…Listener.
  • Loading branch information
SaadArdati committed May 16, 2024
1 parent cbfe644 commit fbb1d28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/box_transform/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ dependencies:
meta: ^1.9.1

dev_dependencies:
lints: ^2.1.0
test: ^1.24.3
coverage: ^1.6.3
lints: ^4.0.0
test: ^1.25.5
coverage: ^1.8.0
8 changes: 4 additions & 4 deletions packages/flutter_box_transform/playground/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,14 @@ class _PlaygroundState extends State<Playground> with WidgetsBindingObserver {
const SingleActivator(LogicalKeyboardKey.delete):
model.removeSelectedBox,
},
child: RawKeyboardListener(
child: KeyboardListener(
focusNode: focusNode,
autofocus: true,
onKey: (key) {
if (key is RawKeyDownEvent) {
onKeyEvent: (key) {
if (key is KeyDownEvent) {
pressedKeys.add(key.logicalKey);
setState(() {});
} else if (key is RawKeyUpEvent) {
} else if (key is KeyUpEvent) {
pressedKeys.remove(key.logicalKey);
setState(() {});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_box_transform/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^4.0.0

flutter:

0 comments on commit fbb1d28

Please sign in to comment.