From 6fb0c75f38e4c04958707df51277df5e80d75db8 Mon Sep 17 00:00:00 2001 From: Corentin Detry <37271973+zeykafx@users.noreply.github.com> Date: Sun, 7 Sep 2025 20:52:20 +0200 Subject: [PATCH] fix: unfocus chat text input on tap outside (#459) Fixes #458 --- lib/screens/channel/chat/widgets/chat_bottom_bar.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/screens/channel/chat/widgets/chat_bottom_bar.dart b/lib/screens/channel/chat/widgets/chat_bottom_bar.dart index 9455975b..10290ae1 100644 --- a/lib/screens/channel/chat/widgets/chat_bottom_bar.dart +++ b/lib/screens/channel/chat/widgets/chat_bottom_bar.dart @@ -219,6 +219,9 @@ class ChatBottomBar extends StatelessWidget { ), controller: chatStore.textController, onSubmitted: chatStore.sendMessage, + onTapOutside: (_) { + chatStore.textFieldFocusNode.unfocus(); + }, ), ), if (chatStore.showSendButton &&