diff --git a/lib/hint/widgets/gemini_text_field.dart b/lib/hint/widgets/gemini_text_field.dart index f45cf3275..101c05d9e 100644 --- a/lib/hint/widgets/gemini_text_field.dart +++ b/lib/hint/widgets/gemini_text_field.dart @@ -29,6 +29,13 @@ class _GeminiTextFieldState extends State { }); } + @override + void dispose() { + _controller.dispose(); + _focusNode.dispose(); + super.dispose(); + } + void _onAskForHint(BuildContext context, String question) { final wordId = context.read().state.word?.word.id; final hintBloc = context.read();