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