简体   繁体   English

如何为 Flutter UI 创建聊天消息气泡

[英]How to create a chat message bubble for Flutter UI

I'd like to create a message bubble where the time takes up the bottom right corner of the message bubble as shown in the photo.我想创建一个消息气泡,其中时间占据消息气泡的右下角,如图所示。 在此处输入图像描述 This is similar to the layout of whatsapp.这类似于whatsapp的布局。 I tried using row and column but that would mean that the time will be at another column or row.我尝试使用行和列,但这意味着时间将在另一列或另一行。 I tried using stack, but the words went behind the timing when the string is too long.我尝试使用堆栈,但是当字符串太长时,单词会落后于时间。 Anyone can suggest how can I go about this?任何人都可以建议我如何 go 关于这个? Thanks in advance!提前致谢! 在此处输入图像描述

Also, in whatsapp, there is a small pointy spot on the bottom right of the message bubble for the last message that was sent by me.此外,在 whatsapp 中,消息气泡的右下角有一个小尖点,用于显示我发送的最后一条消息。 How would you go about checking if it is your latest message in your message collection?您将如何检查它是否是您的消息集合中的最新消息?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM