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?