Feature Request - Time inside chat bubble #96
Replies: 12 comments
-
Hello, thank you :)
|
Beta Was this translation helpful? Give feedback.
-
Thank you for quick response.... is there a way to reduce a minute difference to 5 or 2 min...?? |
Beta Was this translation helpful? Give feedback.
-
No, but I can add. Why you would need it every 2 minutes if I may ask? :) almost every message will have a date header which will take some usable screen space :) |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right... it doesn't make sense to add at every 2 - 5 min... However, It will be nice to show time at the end of chat inside/outside the chat bubble and only group the chat bubbles by date (similar to WhatsApp).... Please excuse me if I am asking more... |
Beta Was this translation helpful? Give feedback.
-
Well it's just another style. We chose style similar to Facebook Messenger because of it's cleanliness (no time in each bubble) and the time is shown in the header (see screenshot in README). In the above case all 3 messages will have a time divider because of 15 minutes difference and it is small enough to not get lost in time, you see the header "10:15" and a bunch of messages, meaning this were one complete conversation and then you see "11:05" and another bunch of messages, clearly separated from the previous one. We understand that there are a lot of different approaches and making everything inside one library is a bit too much. For sure I don't plan to play games in calculating message size in order to decide whether I need to render time in one line or in the other, but maybe in the future we will consider optionally adding time to each message inside the bubble, but rather strictly below the content, which in our opinion will look bad, which is again the reason we went "Messenger" way. |
Beta Was this translation helpful? Give feedback.
-
yup, I agree with that.... thanks for the explanation....
thanks for considering it future development... just make sure when you display a time in bubble a group banner should be date not the time.... |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your contributions! We're making full use of all the features you've built. Maybe it can be a boolean or possibly allow customizing the message bubble entirely regardless of the message type? |
Beta Was this translation helpful? Give feedback.
-
Proper implementation of this feature will take a lot of time and effort so it is very low priority ATM. Just adding whatever breaks our commitment to do a good design. Bubble customisation, on the other hand, is something I would like to implement in the near future, but no ETA yet. |
Beta Was this translation helpful? Give feedback.
-
Will be great to have builders for different message types and have full control over bubble widget. Thank you for your work. |
Beta Was this translation helpful? Give feedback.
-
That is exactly what I planned to do, yes. |
Beta Was this translation helpful? Give feedback.
-
i used |
Beta Was this translation helpful? Give feedback.
-
Hi,
first of all congratulations on developing this great package....
I have couple of questions...
I followed example code from here and didn't find much helpful information related to customization....
https://pub.dev/packages/flutter_chat_ui/example
Beta Was this translation helpful? Give feedback.
All reactions