Comments (6)
@jlubeck Well, it strongly depends on a use case. In our library, we send a message on submit in order to allow users to add multiple lines by pressing 'enter', and at the same time in order to avoid sending one with typo. Which is a good UX practice for both web and mobile platforms. That is the reason why many services do 'alt' + 'enter' shortcut instead: it kills two birds with one stone. Definitely something to explore in the future releases. 😉
from flutter_chat_ui.
@jlubeck Well, it strongly depends on a use case. In our library, we send a message on submit in order to allow users to add multiple lines by pressing 'enter', and at the same time in order to avoid sending one with typo. Which is a good UX practice for both web and mobile platforms. That is the reason why many services do 'alt' + 'enter' shortcut instead: it kills two birds with one stone. Definitely something to explore in the future releases. 😉
Agreed that you need options. Alt + enter would work too. Some platforms (both Telegram and Whatsapp, which are the biggest out there) actually use Alt + Enter (or Shift + Enter) to make the extra lines, and leaves the Enter to send it. If you make a typo, they allow you to edit messages. (which is also a huge plus and something you should consider, but I can make a new ticket for that)
from flutter_chat_ui.
@jlubeck I am sure they allow to choose the type of shortcut you find the best for you. In terms of editing messages, we're aware of its importance. So no need for an extra ticket. 😉
from flutter_chat_ui.
@jlubeck I am sure they allow to choose the type of shortcut you find the best for you. In terms of editing messages, we're aware of its importance. So no need for an extra ticket. 😉
Giving that option to the devs, and be able to change on runtime (so dev can create a settings page for the user) would be amazing
from flutter_chat_ui.
Just some extra info into what has already been said. The expectation from users is going to be that pressing enter sends the message and shift+enter or alt+enter adds a line. This is how all the major chat platforms work and it feels really weird on web to press enter and it not to send the message. Can check out Slack, Messages, Whasapp, Facebook Messenger.. I can't find a major chat experience that doesn't send the message on enter, and so it is going to feel really off pressing enter and it not sending.
from flutter_chat_ui.
Released in v1.1.3.
from flutter_chat_ui.
Related Issues (20)
- How to add a widget at the top that scrolls with messages? HOT 12
- Messages are not displayed in the correct order. HOT 2
- Header to images. HOT 2
- Bubble re-rendering when update message id HOT 2
- How to disable markdown in text message? HOT 3
- Remain characters being converted when press enter key with Japanese input.
- pumpAndSettle times out when testing chat feature using Patrol library HOT 6
- Please provide example documentation on light/dark custom theming HOT 2
- Should I use inputOptions or customBottomWidget to achieve the effect I need? HOT 3
- Performanec issue, the whole list just got some sort of laggy HOT 3
- Japanease character fixed before conversion HOT 4
- video from url HOT 3
- Expose more properties for customization without overriding everything. HOT 2
- Why work on this whole code, and in the end not enable users to seemlessly change colors, but force them to create entire themes? This is very unpractical. I also have an issue with the send Icon an dhow the keyboard has to be invisible before it shows up. HOT 4
- Image Loading HOT 3
- How to display programming code as colorful and correctly formatted HOT 1
- Duplicate GlobalKey detected in widget tree. HOT 3
- Add select emogi just Like whatsApp, for now its taking default keyboard emoji HOT 1
- Unable to load asset ( icon-send.png). Whenever i try to write something for every letter the new letter goes to newline HOT 3
- Do not scroll to the bottom of long chat response if the message takes more than full screen height. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_chat_ui.