Skip to content

fix: enable text wrapping in chat input field#252

Open
Priyanshu-byte-coder wants to merge 1 commit into
AOSSIE-Org:mainfrom
Priyanshu-byte-coder:fix/chat-input-text-wrapping
Open

fix: enable text wrapping in chat input field#252
Priyanshu-byte-coder wants to merge 1 commit into
AOSSIE-Org:mainfrom
Priyanshu-byte-coder:fix/chat-input-text-wrapping

Conversation

@Priyanshu-byte-coder
Copy link
Copy Markdown

Summary

Closes #175

Chat input forced horizontal scrolling on long messages. Fixed by making the field grow vertically (1–5 lines) like Gemini/ChatGPT.

Changes

lib/screens/chat/chat_screen.dart

  • Added minLines: 1 — starts as single line
  • Added maxLines: 5 — expands up to 5 lines, then scrolls vertically
  • Added keyboardType: TextInputType.multiline — enables soft-keyboard newline
  • Added textInputAction: TextInputAction.newline — Enter key inserts newline; send uses the send button
  • Removed onSubmitted (Enter no longer auto-sends; use the send button)

Before / After

Before After
Long message Text scrolls horizontally off-screen Text wraps to next line, stays visible
Send action Enter key submits Send button submits (Enter = newline)

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 14, 2026

Warning

Rate limit exceeded

@Priyanshu-byte-coder has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 36 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: cbc93991-3e91-4754-9fe3-0826e63bddb6

📥 Commits

Reviewing files that changed from the base of the PR and between 1cea2a6 and 12ed54a.

📒 Files selected for processing (1)
  • lib/screens/chat/chat_screen.dart
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve chat input UX: enable text wrapping in message field

1 participant