fix: unfocus chat text input on tap outside (#459)

Fixes #458
This commit is contained in:
Corentin Detry 2025-09-07 20:52:20 +02:00 • committed by GitHub
parent 6ad1361e30
commit 6fb0c75f38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,6 +219,9 @@ class ChatBottomBar extends StatelessWidget {
),
controller: chatStore.textController,
onSubmitted: chatStore.sendMessage,
onTapOutside: (_) {
chatStore.textFieldFocusNode.unfocus();
},
),
),
if (chatStore.showSendButton &&