From 02ae2aa88436f9d3ca0c877b9659a3c9ce1c15ec Mon Sep 17 00:00:00 2001 From: Kiril Tijsma Date: Fri, 7 Mar 2025 11:33:23 +0100 Subject: [PATCH] fix(message-send-buttons): move slightly to better match design --- .../chat_detail/widgets/chat_bottom.dart | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 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 48ce0eb..ea82c89 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 @@ -63,34 +63,37 @@ class ChatBottomInputSection extends HookWidget { } /// Image and send buttons - var messageSendButtons = SizedBox( - height: 45, - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisSize: MainAxisSize.min, - children: [ - CustomSemantics( - identifier: options.semantics.chatSelectImageIconButton, - child: IconButton( - alignment: Alignment.bottomRight, - onPressed: isLoading ? null : onPressSelectImage, - icon: Icon( - Icons.image_outlined, - color: options.iconEnabledColor, + var messageSendButtons = Padding( + padding: const EdgeInsets.only(right: 6.0), + child: SizedBox( + height: 48, + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + CustomSemantics( + identifier: options.semantics.chatSelectImageIconButton, + child: IconButton( + alignment: Alignment.bottomRight, + onPressed: isLoading ? null : onPressSelectImage, + icon: Icon( + Icons.image_outlined, + color: options.iconEnabledColor, + ), ), ), - ), - CustomSemantics( - identifier: options.semantics.chatSendMessageIconButton, - child: IconButton( - alignment: Alignment.bottomRight, - disabledColor: options.iconDisabledColor, - color: options.iconEnabledColor, - onPressed: isLoading ? null : onClickSendMessage, - icon: const Icon(Icons.send_rounded), + CustomSemantics( + identifier: options.semantics.chatSendMessageIconButton, + child: IconButton( + alignment: Alignment.bottomRight, + disabledColor: options.iconDisabledColor, + color: options.iconEnabledColor, + onPressed: isLoading ? null : onClickSendMessage, + icon: const Icon(Icons.send_rounded), + ), ), - ), - ], + ], + ), ), );