最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to auto-scroll to the original message of a replied message in a reversed chat list (like WhatsApp) in Flutter with Firebase

programmeradmin2浏览0评论

I’m developing a chat app in Flutter using Firebase, where I need to display old messages at the top and new messages at the bottom (reversed order). I’ve tried several methods to auto-scroll to the original message when replying to a message, similar to how WhatsApp works, but instead of scrolling down to the original message, it scrolls up. Here’s what I’ve tried:

Using ScrollController to scroll programmatically. Setting the reverse property of the ListView to true and using ScrollController to jump to the correct position. However, the issue persists: the chat list scrolls up instead of scrolling down to show the original message.

Any suggestions on how to achieve this behavior?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论