diff --git a/lib/features/chat/widgets/modern_chat_input.dart b/lib/features/chat/widgets/modern_chat_input.dart index e002d47..452c62f 100644 --- a/lib/features/chat/widgets/modern_chat_input.dart +++ b/lib/features/chat/widgets/modern_chat_input.dart @@ -210,7 +210,14 @@ class _ModernChatInputState extends ConsumerState PlatformUtils.lightHaptic(); widget.onSendMessage(text); _controller.clear(); - // Keep focus and keyboard open; do not collapse automatically + + // Dismiss keyboard after sending to recover screen space + _focusNode.unfocus(); + try { + SystemChannels.textInput.invokeMethod('TextInput.hide'); + } catch (_) { + // Silently handle if keyboard dismissal fails + } } void _insertNewline() {