From d2f000c8a7ae4df2621e7bf138f5a902eb573046 Mon Sep 17 00:00:00 2001 From: Kiril Tijsma Date: Fri, 7 Mar 2025 11:32:52 +0100 Subject: [PATCH] fix(message-send-buttons): prevent focus on hidden elements --- .../src/screens/chat_detail/widgets/chat_bottom.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/flutter_chat/lib/src/screens/chat_detail/widgets/chat_bottom.dart b/packages/flutter_chat/lib/src/screens/chat_detail/widgets/chat_bottom.dart index 2028b74..48ce0eb 100644 --- a/packages/flutter_chat/lib/src/screens/chat_detail/widgets/chat_bottom.dart +++ b/packages/flutter_chat/lib/src/screens/chat_detail/widgets/chat_bottom.dart @@ -127,10 +127,12 @@ class ChatBottomInputSection extends HookWidget { ), // this ensures that that there is space at the end of the // textfield - suffixIcon: AbsorbPointer( - child: Opacity( - opacity: 0.0, - child: messageSendButtons, + suffixIcon: ExcludeFocus( + child: AbsorbPointer( + child: Opacity( + opacity: 0.0, + child: messageSendButtons, + ), ), ), hintText: options.translations.messagePlaceholder,