fix(frontend): Unbreak ChatInputField

Fix specification of `onSubmitted` hook in the `TextField`.
This commit is contained in:
Reinier van der Leer 2024-02-21 02:09:23 +01:00
parent 8fd2e48c1b
commit e44ca4185a
No known key found for this signature in database
GPG Key ID: CDC1180FDAE06193

View File

@ -117,8 +117,7 @@ class _ChatInputFieldState extends State<ChatInputField> {
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();
},