fix(message-send-buttons): move slightly to better match design

This commit is contained in:
Kiril Tijsma 2025-03-07 11:33:23 +01:00 committed by FlutterJoey
parent d2f000c8a7
commit 02ae2aa884

View file

@ -63,34 +63,37 @@ class ChatBottomInputSection extends HookWidget {
} }
/// Image and send buttons /// Image and send buttons
var messageSendButtons = SizedBox( var messageSendButtons = Padding(
height: 45, padding: const EdgeInsets.only(right: 6.0),
child: Row( child: SizedBox(
crossAxisAlignment: CrossAxisAlignment.center, height: 48,
mainAxisSize: MainAxisSize.min, child: Row(
children: [ crossAxisAlignment: CrossAxisAlignment.center,
CustomSemantics( mainAxisSize: MainAxisSize.min,
identifier: options.semantics.chatSelectImageIconButton, children: [
child: IconButton( CustomSemantics(
alignment: Alignment.bottomRight, identifier: options.semantics.chatSelectImageIconButton,
onPressed: isLoading ? null : onPressSelectImage, child: IconButton(
icon: Icon( alignment: Alignment.bottomRight,
Icons.image_outlined, onPressed: isLoading ? null : onPressSelectImage,
color: options.iconEnabledColor, icon: Icon(
Icons.image_outlined,
color: options.iconEnabledColor,
),
), ),
), ),
), CustomSemantics(
CustomSemantics( identifier: options.semantics.chatSendMessageIconButton,
identifier: options.semantics.chatSendMessageIconButton, child: IconButton(
child: IconButton( alignment: Alignment.bottomRight,
alignment: Alignment.bottomRight, disabledColor: options.iconDisabledColor,
disabledColor: options.iconDisabledColor, color: options.iconEnabledColor,
color: options.iconEnabledColor, onPressed: isLoading ? null : onClickSendMessage,
onPressed: isLoading ? null : onClickSendMessage, icon: const Icon(Icons.send_rounded),
icon: const Icon(Icons.send_rounded), ),
), ),
), ],
], ),
), ),
); );