diff --git a/packages/provider_devtools_extension/lib/src/instance_viewer/instance_viewer.dart b/packages/provider_devtools_extension/lib/src/instance_viewer/instance_viewer.dart index 08746460..e7092179 100644 --- a/packages/provider_devtools_extension/lib/src/instance_viewer/instance_viewer.dart +++ b/packages/provider_devtools_extension/lib/src/instance_viewer/instance_viewer.dart @@ -570,8 +570,8 @@ class _EditableFieldState extends State<_EditableField> { return Focus( focusNode: focusNode, - onKey: (node, key) { - if (key.data.physicalKey == PhysicalKeyboardKey.escape) { + onKeyEvent: (node, key) { + if (key.physicalKey == PhysicalKeyboardKey.escape) { focusNode.unfocus(); return KeyEventResult.handled; }