Skip to content

Commit

Permalink
fix: missing dispose in gemini hint text field (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyadLaouissi authored May 21, 2024
1 parent b23cc22 commit f282ff2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/hint/widgets/gemini_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ class _GeminiTextFieldState extends State<GeminiTextField> {
});
}

@override
void dispose() {
_controller.dispose();
_focusNode.dispose();
super.dispose();
}

void _onAskForHint(BuildContext context, String question) {
final wordId = context.read<WordSelectionBloc>().state.word?.word.id;
final hintBloc = context.read<HintBloc>();
Expand Down

0 comments on commit f282ff2

Please sign in to comment.