AOSSIE-Org / AOSSIE-Org/Ell-ena

Improve chat input UX: enable text wrapping in message field

Đang mở
#175 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
54
Fork
110
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is your feature request related to a problem?

- [x] Yes, it is related to a problem

### Describe the feature you'd like

## 🌟 Feature Description

The chat input field should wrap text automatically when a message gets long, instead of staying on one line and forcing users to scroll horizontally to read what they typed.

## 🔍 Problem Statement

Right now when you type a long message in the chat, the text goes off screen to the left and you have to scroll horizontally to see what you typed. This makes it hard to review and edit your message before sending it.

## 🎯 Expected Outcome

The input field should grow vertically as you type, wrapping text to the next line so everything stays visible. It should start as one line and expand up to around 5 lines before scrolling vertically.

## 📷 Screenshots and Design Ideas

Image

AI chat interfaces like Gemini and ChatGPT handle this the same way since users are also typing messages to a bot. The input box starts as one line and grows as the user types, keeping all the text visible at all times. This app should follow the same pattern since it serves the same purpose.

## 📋 Additional Context

The fix involves setting minLines: 1, maxLines: 5, and keyboardType: TextInputType.multiline on the TextField in chat_screen.dart. With this change, sending a message would be done using the send button instead of pressing Enter.

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on implementing this feature

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.