From e44ca4185a0d56273b7e2cd68fc5ca42a4f9b73e Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Wed, 21 Feb 2024 02:09:23 +0100 Subject: [PATCH] fix(frontend): Unbreak `ChatInputField` Fix specification of `onSubmitted` hook in the `TextField`. --- frontend/lib/views/chat/chat_input_field.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/lib/views/chat/chat_input_field.dart b/frontend/lib/views/chat/chat_input_field.dart index 650e0eff..63afa231 100644 --- a/frontend/lib/views/chat/chat_input_field.dart +++ b/frontend/lib/views/chat/chat_input_field.dart @@ -117,8 +117,7 @@ class _ChatInputFieldState extends State { controller: _controller, focusNode: _focusNode, // Enable enter key stroke to send the message - // Untested but submitted at Pwuts recommendation - onSubmitted: () { + onSubmitted: (_) { widget.onSendPressed(_controller.text); _controller.clear(); },