From 738a6b4d7f900a9d9d083e9a6bbb741d34d8d059 Mon Sep 17 00:00:00 2001 From: sensuikan1973 Date: Thu, 23 Jan 2025 20:36:51 +0900 Subject: [PATCH] dispose --- lib/board/pedax_board.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/board/pedax_board.dart b/lib/board/pedax_board.dart index 04629ec8f..8213e0b39 100644 --- a/lib/board/pedax_board.dart +++ b/lib/board/pedax_board.dart @@ -54,6 +54,12 @@ class PedaxBoardState extends State { ); } + @override + void dispose() { + HardwareKeyboard.instance.removeHandler(_handleKeyEvent); + super.dispose(); + } + @override Widget build(final BuildContext context) => RepaintBoundary( key: _captureKey,