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

This commit is contained in:
Kiril Tijsma 2025-03-07 11:32:52 +01:00
parent 52562746b6
commit 5620aab19e

View file

@ -127,12 +127,14 @@ class ChatBottomInputSection extends HookWidget {
), ),
// this ensures that that there is space at the end of the // this ensures that that there is space at the end of the
// textfield // textfield
suffixIcon: AbsorbPointer( suffixIcon: ExcludeFocus(
child: AbsorbPointer(
child: Opacity( child: Opacity(
opacity: 0.0, opacity: 0.0,
child: messageSendButtons, child: messageSendButtons,
), ),
), ),
),
hintText: options.translations.messagePlaceholder, hintText: options.translations.messagePlaceholder,
hintStyle: theme.textTheme.bodyMedium, hintStyle: theme.textTheme.bodyMedium,
fillColor: Colors.white, fillColor: Colors.white,