fix(message-send-buttons): prevent focus on hidden elements

This commit is contained in:
Kiril Tijsma 2025-03-07 11:32:52 +01:00 committed by FlutterJoey
parent 52562746b6
commit d2f000c8a7

View file

@ -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,