Skip to content

Commit

Permalink
dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
sensuikan1973 committed Jan 23, 2025
1 parent 05e9af8 commit 738a6b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/board/pedax_board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class PedaxBoardState extends State<PedaxBoard> {
);
}

@override
void dispose() {
HardwareKeyboard.instance.removeHandler(_handleKeyEvent);
super.dispose();
}

@override
Widget build(final BuildContext context) => RepaintBoundary(
key: _captureKey,
Expand Down

0 comments on commit 738a6b4

Please sign in to comment.